[vtkusers] Attempting to Link

Samir Tannouri stannour at jewel.morgan.edu
Thu Sep 30 13:41:59 EDT 2004



Forgive my ignorance. I'm not 100% familiar
with all the aspects of this software.
Please explain what you mean regarding "linking
against vtkRendering". Do you mean to add
an extra
	#include ....
??

thanks
Sam


On Thu, 30 Sep 2004, Mathieu Malaterre wrote:

> Samir,
>
> 	You need to link against vtkRendering
>
> HTH
> Mathieu
>
> Samir Tannouri wrote:
> > Example/Tutorial Program
> > Cone.cxx will compile, but will not link.
> > The following errors arise:
> >
> > --------------------Configuration: Cone - Win32 Debug--------------------
> > Compiling...
> > Cone.cxx
> > Linking...
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: void __thiscall vtkCamera::Azimuth(double)"
> > (__imp_?Azimuth at vtkCamera@@QAEXN at Z)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: class vtkCamera * __thiscall
> > vtkRenderer::GetActiveCamera(void)"
> > (__imp_?GetActiveCamera at vtkRenderer@@QAEPAVvtkCamera@@XZ)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: static class vtkRenderWindow * __cdecl
> > vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class
> > vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: static class vtkRenderer * __cdecl
> > vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: static class vtkActor * __cdecl
> > vtkActor::New(void)" (__imp_?New at vtkActor@@SAPAV1 at XZ)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: void __thiscall
> > vtkPolyDataMapper::SetInput(class vtkPolyData *)"
> > (__imp_?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: class vtkPolyData * __thiscall
> > vtkPolyDataSource::GetOutput(void)"
> > (__imp_?GetOutput at vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl
> > vtkPolyDataMapper::New(void)" (__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ)
> > Cone.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: static class vtkConeSource * __cdecl
> > vtkConeSource::New(void)" (__imp_?New at vtkConeSource@@SAPAV1 at XZ)
> > Debug/Cone.exe : fatal error LNK1120: 10 unresolved externals
> > Error executing link.exe.
> >
> > Cone.exe - 11 error(s), 0 warning(s)
> > -----------------------------------------------------------------
> >
> >
> > Please advise........
> >
> > Thank You
> > Sam
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
>



More information about the vtkusers mailing list