dll - Visual Studio 2010 linking errors using VTK -
i'm having trouble compile vtk 5.10.1 example code in visual studio 2010 on windows 7 64 bit sp1.
first of all, installed vtk using this tutorial. no errors occured while installing vtk , example executables cone.exe located @ c:\vtk5.10.1_cmake\bin\release running fine.
in visual studio 2010 started new win32 console application , tested first example code this site. edited projekt properties (additional include directories, additional library directories , additional dependencies).
the linker errors looked that:
vtktest.obj : error lnk2019: unresolved external symbol ""public: void __thiscall vtkrenderer::addactor(class vtkprop *)" (?addactor@vtkrenderer@@qaexpavvtkprop@@@z)" referenced in function "_main".
most of the other people same error forgot add libs additional dependencies. added libs in c:\vtk5.10.1_bin\lib\vtk-5.10 directory , opengl32 library. tried seperate libs space, semicolon , new line.
then, read people using shared libraries. i'm not familiar dlls. reinstalled vtk shared libraries options turned on , copied resulting dlls system32 directory. now, errors looks different:
vtktest.obj : error lnk2019: unresolved external symbol ""__declspec(dllimport) public: void __thiscall vtkrenderer::addactor(class vtkprop *)" (__imp_?addactor@vtkrenderer@@qaexpavvtkprop@@@z)" referenced in function "_main".
any appriciated!
nevermind, forgot change platform x64 :/
Comments
Post a Comment