<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hum...<br><br>thanks, Mike, it seems better now ! Just 10 errors ! :)<br><br>Take a look at them:<br><br>Error 11 error LNK2001: unresolved external symbol "private: virtual char const * __thiscall vtkExampleTiffWriter::GetClassNameInternal(void)const " (?GetClassNameInternal@vtkExampleTiffWriter@@EBEPBDXZ) vtkExampleTiffWriter.obj <br>Error 12 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::IsA(char const *)" (?IsA@vtkExampleTiffWriter@@UAEHPBD@Z) vtkExampleTiffWriter.obj <br>Error 13 error LNK2001: unresolved external symbol "protected: virtual class vtkObjectBase * __thiscall vtkExampleTiffWriter::NewInstanceInternal(void)const "
(?NewInstanceInternal@vtkExampleTiffWriter@@MBEPAVvtkObjectBase@@XZ) vtkExampleTiffWriter.obj <br>Error 14 error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkExampleTiffWriter::SetCompression(int)" (?SetCompression@vtkExampleTiffWriter@@UAEXH@Z) vtkExampleTiffWriter.obj <br>Error 15 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompressionMinValue(void)" (?GetCompressionMinValue@vtkExampleTiffWriter@@UAEHXZ) vtkExampleTiffWriter.obj <br>Error 16 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompressionMaxValue(void)" (?GetCompressionMaxValue@vtkExampleTiffWriter@@UAEHXZ)
vtkExampleTiffWriter.obj <br>Error 17 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompression(void)" (?GetCompression@vtkExampleTiffWriter@@UAEHXZ) vtkExampleTiffWriter.obj <br>Error 18 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall vtkExampleTiffWriter::~vtkExampleTiffWriter(void)" (__imp_??1vtkExampleTiffWriter@@MAE@XZ) referenced in function "protected: virtual void * __thiscall vtkExampleTiffWriter::`scalar deleting destructor'(unsigned int)" (??_GvtkExampleTiffWriter@@MAEPAXI@Z) vtkExampleTiffWriter.obj <br>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@XZ) vtkExampleTiffWriter.obj <br>Error 20 fatal error LNK1120: 9 unresolved externals C:\Nacad\Plugins\ExampleTiffWriter.build\Debug\SMExampleTiffWriter.dll <br><br>Do you know what is missing ?<br><br>Thanks a lot for the attention !<br><br>Rafael March.<br><br><br>--- On <b>Mon, 9/8/08, Mike Jackson <i><mike.jackson@bluequartz.net></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Mike Jackson <mike.jackson@bluequartz.net><br>Subject: Re: [Paraview] Writer example<br>To: rafaelmarch3@yahoo.com<br>Cc: paraview@paraview.org<br>Date: Monday, September 8, 2008, 6:29 PM<br><br><pre>Try putting the following
at the top of the .h file:<br><br><br>#ifndef _MXA_DLL_EXPORT_H_<br>#define _MXA_DLL_EXPORT_H_<br><br>/* Cmake will define MXADataModel_EXPORTS on Windows when it<br>configures to build a shared library. If you are going to use<br>another build system on windows or create the visual studio<br>projects by hand you need to define MXADataModel_EXPORTS when<br>building a DLL on windows.<br>*/<br><br>#if defined (WIN32) && defined (BUILD_SHARED_LIBS)<br>#if defined (_MSC_VER)<br>#pragma warning(disable: 4251)<br>#endif<br> #if defined(SMExampleTiffWriter_EXPORT)<br> #define VTK_IO_EXPORT __declspec(dllexport)<br> #else<br> #define VTK_IO_EXPORT __declspec(dllimport)<br> #endif /* MXADataModel_EXPORTS */<br>#else /* defined (_WIN32) && defined (MXA_BUILD_SHARED_LIBS) */<br> #define VTK_IO_EXPORT<br>#endif<br><br><br>#endif /* _MXA_DLL_EXPORT_H_ */<br><br>We can clean this up later..but see if that gets rid of the link
errors.<br><br> _________________________________________________<br>| Mike Jackson - Principal Software Engineer |<br>| BlueQuartz Software |<br>| mike.jackson@bluequartz.net |<br>| www.bluequartz.net |<br>---------------------------------------------------<br><br>On Sep 8, 2008, at 1:47 PM, Rafael March wrote:<br><br>> Hi,<br>><br>> unfortunatelly, I couldn't compile it. Got 17 "error<br>LNK:unresolved <br>> external symbol" like errors. Have any idea what's wrong ? Do you<br> <br>> have another example ?<br>><br>> Thanks !<br>><br>> Rafael March.<br>><br>> --- On Mon, 9/8/08, Mike Jackson <mike.jackson@bluequartz.net><br>wrote:<br>> From: Mike Jackson <mike.jackson@bluequartz.net><br>> Subject: Re: [Paraview] Writer example<br>> To: rafaelmarch3@yahoo.com<br>> Cc: paraview@paraview.org<br>> Date: Monday,
September 8, 2008, 3:50 PM<br>><br>> Give this a try. It does load with the latest ParaView CVS. Could not<br>> actually figure out how to use it but the plugin did compile and load.<br>><br>> OS X 10.5.4, ParaView CVS, Xcode 3.1 tooling. CMake 2.6.1<br>><br>><br>><br>><br>> _________________________________________________<br>> | Mike Jackson - Principal Software Engineer |<br>> | BlueQuartz Software |<br>> | mike.jackson@bluequartz.net |<br>> | www.bluequartz.net |<br>> ---------------------------------------------------<br>><br>> On Sep 8, 2008, at 11:10 AM, Rafael March wrote:<br>><br>> > Dear friends,<br>> ><br>> > I'm trying to create my own writer, and I'm having some<br>problems.<br>> I<br>> > wonder if anyone could send me a source code with an writer example,<br>> > so that I
can use it as a template.<br>> ><br>> > I know that there is one called MyTiffWriter under Examples/Plugin/<br>> > Writer, in the latest cvs version of Paraview. I've already<br>compiled<br>> > it, and it works fine. But, it has no code implementation, just<br>> > overwrites the already existing vtkTiffWriter. So, it would be more<br>> > useful to me an example<br>> with an explicit writer implementation.<br>> ><br>> > Can anyone provide me this code ?<br>> ><br>> > Thanks in advance.<br>> ><br>> > Rafael March.<br>> ><br>> > _______________________________________________<br>> > ParaView mailing list<br>> > ParaView@paraview.org<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>><br>><br>><br>><br>><br>><br>><br>><br>><br>><br>> _______________________________________________<br>> ParaView mailing
list<br>> ParaView@paraview.org<br>> http://www.paraview.org/mailman/listinfo/paraview<br><br></pre></blockquote></td></tr></table><br>