[vtkusers] Definition of dllimport function not allowed

Christopher Denter dennda at the-space-station.com
Sat Mar 13 18:44:05 EST 2010


Hi Marcelo.

I'm having the exact same problem.
Have you been able to fix it? If yes, please tell me how.

Thanks in advance,
	Christopher


On 27. Jan, 2010, at 2:36 PM, Marcelo de Pierre Amati wrote:

> Hi,
>  
> I’m trying to compile VTK 5.4.2 on Windows 7, VS9, wrapping for python (shared libs on) without success.  When I try to compile without wrapping for python, everything works fine.
>  
> Error messages (many times):
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(32) : error C2491: 'vtkArrayIteratorTemplate<T>::New' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(35) : error C2491: 'vtkArrayIteratorTemplate<T>::CollectRevisions' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(38) : error C2491: 'vtkArrayIteratorTemplate<T>::SetArray' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(45) : error C2491: 'vtkArrayIteratorTemplate<T>::vtkArrayIteratorTemplate' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(53) : error C2491: 'vtkArrayIteratorTemplate<T>::~vtkArrayIteratorTemplate' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(65) : error C2491: 'vtkArrayIteratorTemplate<T>::Initialize' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(76) : error C2491: 'vtkArrayIteratorTemplate<T>::GetNumberOfTuples' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(87) : error C2491: 'vtkArrayIteratorTemplate<T>::GetNumberOfValues' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(98) : error C2491: 'vtkArrayIteratorTemplate<T>::GetNumberOfComponents' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(105) : error C2491: 'vtkArrayIteratorTemplate<T>::GetTuple' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(112) : error C2491: 'vtkArrayIteratorTemplate<T>::GetDataType' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(119) : error C2491: 'vtkArrayIteratorTemplate<T>::GetDataTypeSize' : definition of dllimport function not allowed
> 1>d:\devel\vtk-5.4.2\common\vtkArrayIteratorTemplate.txx(136) : error C2491: 'vtkArrayIteratorTemplate<T>::PrintSelf' : definition of dllimport function not allowed
>  
>  
> Does anyone how to help me???
>  
> Thanks a lot,
>  
> Marcelo
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK 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