[vtkusers] error LNK2019: unresolved external symbol "public: class vtkCamera * __thiscall vtkRenderer::GetActiveCamera(void)"
Andreas Brüning
mail-andi at web.de
Wed Jul 23 07:41:31 EDT 2008
Hi Carl,
did you add the libaries in your VS Project, or only the path? Add the libaries also to the Project Properties: Linker/Input/Addiditional Dependencies.
Maybe this will help.
Andi
<quote author="Carl Trapani - SkyTop Software">
Hi All,
Can anyone offer advice on fixing the link errors I'm getting (see
below). Here is what I've done:
1) I created a build of vtk-5.0.4 using CMake 2.6 with the Visual Studio
2008 Generator. I then successfully compiled and built a Debug and
Release version of the ALL_BUILD target using VC++ 2008 on Vista.
2) I then successfully built the INSTALL target of the VTK solution.
That put libraries and header files in C:\Program Files\VTK.
3) I created a new Project and Solution to see if I can make the
Cone.cpp example from the Tutorial, Step 1. I added the header and
library paths to my VS configuration settings by going to
Tools -> Options --> Projects and Solutions --> VC++ Directories
Platform: Win32
Show Directories For: Include Files
Show Directories For: Library Files
To the Include path, I added:
C:\Program Files\VTK\include\vtk-5.0
To the Library path, I added:
C:\Program Files\VTK\lib
Here is a listing of the library files in C:\Program Files\VTK\lib:
vtkCommon.lib
vtkDICOMParser.lib
vtkexoIIc.lib
vtkexpat.lib
vtkFiltering.lib
vtkfreetype.lib
vtkftgl.lib
vtkGenericFiltering.lib
vtkGraphics.lib
vtkHybrid.lib
vtkImaging.lib
vtkIO.lib
vtkjpeg.lib
vtkNetCDF.lib
vtkpng.lib
vtkRendering.lib
vtksys.lib
vtktiff.lib
vtkVolumeRendering.lib
vtkWidgets.lib
vtkzlib.lib
My path includes C:\projects\vtk-5.0.4\VTKBuild-MsVS9\bin\Debug\ as
mentioned in
http://public.kitware.com/pipermail/vtkusers/2004-April/073054.html
Any help would be greatly appreciated.
Thanks,
Carl Trapani
----- BEGIN LINK ERRORS-------------------
1>------ Build started: Project: Cones, Configuration: Debug Win32 ------
1>Compiling...
1>Cone.cpp
1>Linking...
1>Cone.obj : "public: void __thiscall vtkCamera::Azimuth(double)"
(?Azimuth at vtkCamera@@QAEXN at Z) referenced in function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: class
vtkCamera * __thiscall vtkRenderer::GetActiveCamera(void)"
(?GetActiveCamera at vtkRenderer@@QAEPAVvtkCamera@@XZ) referenced in
function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)"
(?New at vtkRenderWindow@@SAPAV1 at XZ) referenced in function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkRenderer::AddActor(class vtkProp *)"
(?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderer * __cdecl vtkRenderer::New(void)"
(?New at vtkRenderer@@SAPAV1 at XZ) referenced in function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: static
class vtkActor * __cdecl vtkActor::New(void)" (?New at vtkActor@@SAPAV1 at XZ)
referenced in function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: static
class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)"
(?New at vtkPolyDataMapper@@SAPAV1 at XZ) referenced in function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: static
class vtkConeSource * __cdecl vtkConeSource::New(void)"
(?New at vtkConeSource@@SAPAV1 at XZ) referenced in function _main
1>Cone.obj : error LNK2019: unresolved external symbol "public: class
vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(int)"
(?GetOutputPort at vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@H at Z) referenced
in function "public: class vtkAlgorithmOutput * __thiscall
vtkAlgorithm::GetOutputPort(void)"
(?GetOutputPort at vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ)
1>C:\Users\Carl\Documents\Visual Studio
2008\Projects\VTKExamples\Debug\Cones.exe : fatal error LNK1120: 9
unresolved externals
1>Build log was saved at "file://c:\Users\Carl\Documents\Visual Studio
2008\Projects\VTKExamples\Cones\Debug\BuildLog.htm"
1>Cones - 10 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
----- END LINK ERRORS-------------------
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
More information about the vtkusers
mailing list