[vtkusers] Definition of dllimport function not allowed

Marcelo de Pierre Amati marcelo_amati at yahoo.com.br
Wed Jan 27 06:03:07 EST 2010


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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100127/fbd6335a/attachment.htm>


More information about the vtkusers mailing list