[vtkusers] MingW with VTK?

X Z xf10036 at hotmail.com
Tue Mar 21 12:12:41 EST 2006


Did you build vtk with the same compiler?  Looks like either you failed to link to the vtk library, or you tried to link to vtk library build with compiler that's not binary compatible with MingW compiler.
 
xz
http://www.xzing.org


Date: Tue, 21 Mar 2006 12:31:03 -0300From: darioaugusto at gmail.comTo: vtkusers at vtk.orgSubject: [vtkusers] MingW with VTK?Hi everyone,I´m trying to use VTK with an opensource editor (Dev-C++) which compiler is MingW. And I have a big problem because it seems that MingW rename the files in a way that VTK doesn't support and I can't compile my example because of that. Do you know if there is any solution available at this moment? I would be really thankful with any help.btw, I use VTK 5.0, Dev-C++ and MingW in the lasts versions. And my OS is windows XP, my processor is an AMD64, just in case. I copy here the compiler log.thanks a lot in advance.[]sDário Oliveira##########################################################################################################g++.exe teste.o  -o "Project3.exe" -L"E:/Dev-Cpp/lib" -L"C:/CMake/bin" -L"C:/CMake/lib" -L"E:/Lib/VTK_C" -L"E:/Lib/VTK_C/bin"  teste.o(.text+0x12b):teste.cpp : undefined reference to `_imp___ZN11vtkRenderer3NewEv'teste.o(.text+0x135):teste.cpp: undefined reference to `_imp___ZN15vtkRenderWindow3NewEv'teste.o(.text+0x15b):teste.cpp: undefined reference to `_imp___ZN25vtkRenderWindowInteractor3NewEv' teste.o(.text+0x172):teste.cpp: undefined reference to `_imp___ZN25vtkRenderWindowInteractor15SetRenderWindowEP15vtkRenderWindow'teste.o(.text+0x179):teste.cpp: undefined reference to `_imp___ZN17vtkVolume16Reader3NewEv' teste.o(.text+0x1d3):teste.cpp: undefined reference to `_imp___ZN17vtkVolume16Reader30SetDataByteOrderToLittleEndianEv'teste.o(.text+0x22a):teste.cpp: undefined reference to `_imp___ZN16vtkContourFilter3NewEv' teste.o(.text+0x277):teste.cpp: undefined reference to `_imp___ZN18vtkPolyDataNormals3NewEv'teste.o(.text+0x2c6):teste.cpp: undefined reference to `_imp___ZN17vtkPolyDataMapper3NewEv'teste.o(.text+0x30b):teste.cpp : undefined reference to `_imp___ZN8vtkActor3NewEv'teste.o(.text+0x331):teste.cpp: undefined reference to `_imp___ZN16vtkOutlineFilter3NewEv'teste.o(.text+0x361):teste.cpp: undefined reference to `_imp___ZN17vtkPolyDataMapper3NewEv' teste.o(.text+0x391):teste.cpp: undefined reference to `_imp___ZN8vtkActor3NewEv'teste.o(.text+0x3bd):teste.cpp: undefined reference to `_imp___ZN8vtkActor11GetPropertyEv'teste.o(.text+0x3d9):teste.cpp: undefined reference to `_imp___ZN11vtkProperty8SetColorEddd' teste.o(.text+0x3e0):teste.cpp: undefined reference to `_imp___ZN9vtkCamera3NewEv'teste.o(.text+0x406):teste.cpp: undefined reference to `_imp___ZN9vtkCamera9SetViewUpEddd'teste.o(.text+0x425):teste.cpp: undefined reference to `_imp___ZN9vtkCamera11SetPositionEddd' teste.o(.text+0x444):teste.cpp: undefined reference to `_imp___ZN9vtkCamera13SetFocalPointEddd'teste.o(.text+0x451):teste.cpp: undefined reference to `_imp___ZN9vtkCamera22ComputeViewPlaneNormalEv'teste.o(.text+0x465): teste.cpp: undefined reference to `_imp___ZN11vtkRenderer8AddActorEP7vtkProp'teste.o(.text+0x479):teste.cpp: undefined reference to `_imp___ZN11vtkRenderer8AddActorEP7vtkProp'teste.o(.text+0x48d):teste.cpp: undefined reference to `_imp___ZN11vtkRenderer15SetActiveCameraEP9vtkCamera' teste.o(.text+0x49a):teste.cpp: undefined reference to `_imp___ZN11vtkRenderer11ResetCameraEv'teste.o(.text+0x4b1):teste.cpp: undefined reference to `_imp___ZN9vtkCamera5DollyEd'teste.o(.text+0x507):teste.cpp: undefined reference to `_imp___ZN11vtkRenderer24ResetCameraClippingRangeEv' teste.o(.text$_ZN16vtkContourFilter8SetValueEid[vtkContourFilter::SetValue(int, double)]+0x1e):teste.cpp: undefined reference to `_imp___ZN16vtkContourValues8SetValueEid'teste.o(.text$_ZN12vtkAlgorithm13GetOutputPortEv[vtkAlgorithm::GetOutputPort()]+0x15): teste.cpp: undefined reference to `_imp___ZN12vtkAlgorithm13GetOutputPortEi'collect2: ld returned 1 exit statusmake.exe: *** [Project3.exe] Error 1############################################################################################################ 
_________________________________________________________________
Search on the go: Try Windows Live(tm) Search for Mobile beta
http://www1.imagine-msn.com/minisites/mobile/Default.aspx?locale=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060321/21c01da6/attachment.htm>


More information about the vtkusers mailing list