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                             |
| [EMAIL PROTECTED]                     |
| 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 <[EMAIL PROTECTED]> wrote:
From: Mike Jackson <[EMAIL PROTECTED]>
Subject: Re: [Paraview] Writer example
To: [EMAIL PROTECTED]
Cc: [email protected]
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                             |
| [EMAIL PROTECTED]                     |
| 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
> [email protected]
> http://www.paraview.org/mailman/listinfo/paraview










_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview

_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to