[vtkusers] Problems with vtkWin32Header.h (I think)

Amy Squillacote amy.squillacote at kitware.com
Tue Aug 16 13:31:54 EDT 2005


Hi Matt,

When you ran CMakeSetup just before you compiled VTK, did you set 
VTK_USE_HYBRID to ON?  It's off by default, and that would probably 
explain why VTK_HYBRID_EXPORT caused errors.

- Amy

At 12:53 PM 8/16/2005, Matthew D. DiFranco wrote:
>I have just started looking at a program that uses VTK, and I am new 
>to it. I am trying to compile the program as is on Windows XP in 
>Visual C++ 6.0 using VTK 4.2. VTK compiles without a problem, but 
>when I go to compile the code, I get the following error:
>
>'vtkResampleSurface Filter uses undefined class VTK_HYBRID_EXPORT'
>
>and a few others like it, followed by a whole bunch of errors 
>related to that one. Having done some investigation, I've discovered 
>that this error is due to the following class definition:
>
>class VTK_HYBRID_EXPORT vtkResampleSurfaceFilter : public 
>vtkPolyDatatoPolyDataFilter
>
>Upon further searching, I discovered that the rogue 
>VTK_HYBRID_EXPORT is a macro defined in vtkWin32Header.h which 
>should translate to __declspec(dllexport) or __declspec(dllimport), 
>depending on the existence of the vtkHybrid_EXPORTS flag.
>
> From my searching on the MSDN, I have discovered that the 
> __declspec business has to do with importing and exporting to and 
> from dll's. I don't really understand that stuff, but I'd really 
> like to figure out how to get my program to recognize the existence 
> of this macro definition so that it will compile. Anybody know what 
> needs to happen?
>
>Matt
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages 
>on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list