[vtkusers] VTK_FACTORY_INTERFACE_IMPLEMENT macro generating compiler errors

Maarten Beek beekmaarten at yahoo.com
Fri Apr 24 10:40:59 EDT 2015


Hi All,
I am trying to create my own dll with classes derived from VTK classes that shoud integrate in the vtkObjectFactory architecture.
But when I use the macro VTK_FACTORY_INTERFACE_IMPLEMENT, I get the following compiler errors:
error C2491: 'vtkLoad' : definition of dllimport function not allowederror C2491: 'vtkGetFactoryVersion : definition of dllimport function not allowederror C2491: 'vtkGetFactoryCompilerUsed' : definition of dllimport function not allowed
Is the VTK_FACTORY_INTERFACE_EXPORT wrongly defined?
Thanks - Maarten

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150424/5f5e8485/attachment.html>


More information about the vtkusers mailing list