[vtkusers] undefined reference errors when compiling
Yichuan GU
guyichuan at gmail.com
Tue Mar 6 15:52:09 EST 2012
Hello,
I'm new to vtk. Actually i try to compile a particle modeling software
written by our professor with vtk components and i met several undefined
reference errors:
Linking CXX executable bin/gmc.out
>
> lib/libscopi.a(Out_VTK.o): In function `Out_VTK::plot(int)':
>
> Out_VTK.cpp:(.text+0x98c): undefined reference to
>> `vtkPolyDataMapper::New()'
>
> Out_VTK.cpp:(.text+0x9c6): undefined reference to `vtkLODActor::New()'
>
> Out_VTK.cpp:(.text+0xa8a): undefined reference to `vtkRenderer::New()'
>
> Out_VTK.cpp:(.text+0xab3): undefined reference to
>> `vtkRenderer::GetActiveCamera()'
>
> Out_VTK.cpp:(.text+0xac7): undefined reference to
>> `vtkCamera::SetFocalPoint(double, double, double)'
>
> Out_VTK.cpp:(.text+0xacf): undefined reference to
>> `vtkRenderer::GetActiveCamera()'
>
> Out_VTK.cpp:(.text+0xaef): undefined reference to
>> `vtkCamera::SetPosition(double, double, double)'
>
> Out_VTK.cpp:(.text+0xaf7): undefined reference to
>> `vtkRenderer::GetActiveCamera()'
>
> Out_VTK.cpp:(.text+0xb0f): undefined reference to
>> `vtkCamera::SetViewUp(double, double, double)'
>
> Out_VTK.cpp:(.text+0xb73): undefined reference to `vtkRenderWindow::New()'
>
> Out_VTK.cpp:(.text+0xbd7): undefined reference to
>> `vtkRenderWindowInteractor::New()'
>
> Out_VTK.cpp:(.text+0xbed): undefined reference to
>> `vtkRenderWindowInteractor::SetRenderWindow(vtkRenderWindow*)'
>
> Out_VTK.cpp:(.text+0xc05): undefined reference to
>> `vtkRenderer::ResetCamera()'
>
> Out_VTK.cpp:(.text+0xf0c): undefined reference to `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x11b9): undefined reference to
>> `vtkRenderer::AddActor(vtkProp*)'
>
> Out_VTK.cpp:(.text+0x11d3): undefined reference to
>> `vtkRenderer::AddActor(vtkProp*)'
>
> Out_VTK.cpp:(.text+0x11e7): undefined reference to
>> `vtkRenderer::AddActor(vtkProp*)'
>
> Out_VTK.cpp:(.text+0x11f9): undefined reference to
>> `vtkRenderer::AddActor(vtkProp*)'
>
> Out_VTK.cpp:(.text+0x120f): undefined reference to
>> `vtkRenderer::AddActor(vtkProp*)'
>
> lib/libscopi.a(Out_VTK.o):Out_VTK.cpp:(.text+0x1229): more undefined
>> references to `vtkRenderer::AddActor(vtkProp*)' follow
>
> lib/libscopi.a(Out_VTK.o): In function `Out_VTK::plot(int)':
>
> Out_VTK.cpp:(.text+0x1486): undefined reference to
>> `vtkPolyDataMapper::New()'
>
> Out_VTK.cpp:(.text+0x14b2): undefined reference to `vtkLODActor::New()'
>
> Out_VTK.cpp:(.text+0x14bf): undefined reference to
>> `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x14e4): undefined reference to
>> `vtkProperty::SetColor(double, double, double)'
>
> Out_VTK.cpp:(.text+0x1504): undefined reference to
>> `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x15c5): undefined reference to
>> `vtkPolyDataMapper::New()'
>
> Out_VTK.cpp:(.text+0x15f1): undefined reference to `vtkActor::New()'
>
> Out_VTK.cpp:(.text+0x15fc): undefined reference to
>> `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x1621): undefined reference to
>> `vtkProperty::SetColor(double, double, double)'
>
> Out_VTK.cpp:(.text+0x163a): undefined reference to
>> `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x1709): undefined reference to
>> `vtkPolyDataMapper::New()'
>
> Out_VTK.cpp:(.text+0x1742): undefined reference to `vtkLODActor::New()'
>
> Out_VTK.cpp:(.text+0x174f): undefined reference to
>> `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x176b): undefined reference to
>> `vtkProperty::SetColor(double, double, double)'
>
> Out_VTK.cpp:(.text+0x1812): undefined reference to
>> `vtkPolyDataMapper::New()'
>
> Out_VTK.cpp:(.text+0x1844): undefined reference to
>> `vtkPolyDataMapper::SetInput(vtkPolyData*)'
>
> Out_VTK.cpp:(.text+0x1849): undefined reference to `vtkLODActor::New()'
>
> Out_VTK.cpp:(.text+0x18ca): undefined reference to
>> `vtkMapper::SetLookupTable(vtkScalarsToColors*)'
>
> Out_VTK.cpp:(.text+0x18e0): undefined reference to
>> `vtkScalarBarActor::New()'
>
> Out_VTK.cpp:(.text+0x1984): undefined reference to
>> `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x19a4): undefined reference to
>> `vtkProperty::SetColor(double, double, double)'
>
> Out_VTK.cpp:(.text+0x1b94): undefined reference to
>> `vtkActor::GetProperty()'
>
> Out_VTK.cpp:(.text+0x1bae): undefined reference to
>> `vtkProperty::SetColor(double, double, double)'
>
> lib/libslu.a(dsp_blas2.o): In function `sp_dtrsv':
>
> dsp_blas2.c:(.text+0x591): undefined reference to `dtrsv_'
>
> dsp_blas2.c:(.text+0x76e): undefined reference to `dtrsv_'
>
> collect2: ld returned 1 exit status
>
>
> How can i fix this problem ? Thanks a lot !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120306/a76beb87/attachment.htm>
More information about the vtkusers
mailing list