[Paraview] Writer example

Rafael March rafaelmarch3 at yahoo.com
Mon Sep 8 14:35:57 EDT 2008


Hum...

thanks, Mike, it seems better now ! Just 10 errors ! :)

Take a look at them:

Error    11    error LNK2001: unresolved external symbol "private: virtual char const * __thiscall vtkExampleTiffWriter::GetClassNameInternal(void)const " (?GetClassNameInternal at vtkExampleTiffWriter@@EBEPBDXZ)    vtkExampleTiffWriter.obj    
Error    12    error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::IsA(char const *)" (?IsA at vtkExampleTiffWriter@@UAEHPBD at Z)    vtkExampleTiffWriter.obj    
Error    13    error LNK2001: unresolved external symbol "protected: virtual class vtkObjectBase * __thiscall vtkExampleTiffWriter::NewInstanceInternal(void)const " (?NewInstanceInternal at vtkExampleTiffWriter@@MBEPAVvtkObjectBase@@XZ)    vtkExampleTiffWriter.obj    
Error    14    error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkExampleTiffWriter::SetCompression(int)" (?SetCompression at vtkExampleTiffWriter@@UAEXH at Z)    vtkExampleTiffWriter.obj    
Error    15    error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompressionMinValue(void)" (?GetCompressionMinValue at vtkExampleTiffWriter@@UAEHXZ)    vtkExampleTiffWriter.obj    
Error    16    error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompressionMaxValue(void)" (?GetCompressionMaxValue at vtkExampleTiffWriter@@UAEHXZ)    vtkExampleTiffWriter.obj    
Error    17    error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompression(void)" (?GetCompression at vtkExampleTiffWriter@@UAEHXZ)    vtkExampleTiffWriter.obj    
Error    18    error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall vtkExampleTiffWriter::~vtkExampleTiffWriter(void)" (__imp_??1vtkExampleTiffWriter@@MAE at XZ) referenced in function "protected: virtual void * __thiscall vtkExampleTiffWriter::`scalar deleting destructor'(unsigned int)" (??_GvtkExampleTiffWriter@@MAEPAXI at Z)    vtkExampleTiffWriter.obj    
Error    19    error LNK2019: unresolved external symbol "__declspec(dllimport) const vtkExampleTiffWriter::`vftable'" (__imp_??_7vtkExampleTiffWriter@@6B@) referenced in function "protected: __thiscall vtkExampleTiffWriter::vtkExampleTiffWriter(void)" (??0vtkExampleTiffWriter@@IAE at XZ)    vtkExampleTiffWriter.obj    
Error    20    fatal error LNK1120: 9 unresolved externals    C:\Nacad\Plugins\ExampleTiffWriter.build\Debug\SMExampleTiffWriter.dll    

Do you know what is missing ?

Thanks a lot for the attention !

Rafael March.


--- On Mon, 9/8/08, Mike Jackson <mike.jackson at bluequartz.net> wrote:
From: Mike Jackson <mike.jackson at bluequartz.net>
Subject: Re: [Paraview] Writer example
To: rafaelmarch3 at yahoo.com
Cc: paraview at paraview.org
Date: Monday, September 8, 2008, 6:29 PM

Try putting the following at the top of the .h file:


#ifndef _MXA_DLL_EXPORT_H_
#define _MXA_DLL_EXPORT_H_

/* Cmake will define MXADataModel_EXPORTS on Windows when it
configures to build a shared library. If you are going to use
another build system on windows or create the visual studio
projects by hand you need to define MXADataModel_EXPORTS when
building a DLL on windows.
*/

#if defined (WIN32) && defined (BUILD_SHARED_LIBS)
#if defined (_MSC_VER)
#pragma warning(disable: 4251)
#endif
   #if defined(SMExampleTiffWriter_EXPORT)
     #define  VTK_IO_EXPORT __declspec(dllexport)
   #else
     #define  VTK_IO_EXPORT __declspec(dllimport)
   #endif /* MXADataModel_EXPORTS */
#else /* defined (_WIN32) && defined (MXA_BUILD_SHARED_LIBS)  */
  #define VTK_IO_EXPORT
#endif


#endif /* _MXA_DLL_EXPORT_H_ */

We can clean this up later..but see if that gets rid of the link errors.

  _________________________________________________
| Mike Jackson - Principal Software Engineer      |
| BlueQuartz Software                             |
| mike.jackson at bluequartz.net                     |
| www.bluequartz.net                              |
---------------------------------------------------

On Sep 8, 2008, at 1:47 PM, Rafael March wrote:

> Hi,
>
> unfortunatelly, I couldn't compile it. Got 17 "error
LNK:unresolved  
> external symbol" like errors. Have any idea what's wrong ? Do you
 
> have another example ?
>
> Thanks !
>
> Rafael March.
>
> --- On Mon, 9/8/08, Mike Jackson <mike.jackson at bluequartz.net>
wrote:
> From: Mike Jackson <mike.jackson at bluequartz.net>
> Subject: Re: [Paraview] Writer example
> To: rafaelmarch3 at yahoo.com
> Cc: paraview at paraview.org
> Date: Monday, September 8, 2008, 3:50 PM
>
> Give this a try. It does load with the latest ParaView CVS. Could not
> actually figure out how to use it but the plugin did compile and load.
>
> OS X 10.5.4, ParaView CVS, Xcode 3.1 tooling. CMake 2.6.1
>
>
>
>
>  _________________________________________________
> | Mike Jackson - Principal Software Engineer      |
> | BlueQuartz Software                             |
> | mike.jackson at bluequartz.net                     |
> | www.bluequartz.net                              |
> ---------------------------------------------------
>
> On Sep 8, 2008, at 11:10 AM, Rafael March wrote:
>
> > Dear friends,
> >
> > I'm trying to create my own writer, and I'm having some
problems.
> I
> > wonder if anyone could send me a source code with an writer example,
> > so that I can use it as a template.
> >
> > I know that there is one called MyTiffWriter under Examples/Plugin/
> > Writer, in the latest cvs version of Paraview. I've already
compiled
> > it, and it works fine. But, it has no code implementation, just
> > overwrites the already existing vtkTiffWriter. So, it would be more
> > useful to me an example
>  with an explicit writer implementation.
> >
> > Can anyone provide me this code ?
> >
> > Thanks in advance.
> >
> > Rafael March.
> >
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080908/b7832413/attachment.htm>


More information about the ParaView mailing list