[vtkusers] linking errors when build my code with static VTK-6.1.0 on Linux

Ju LIU liujuy at gmail.com
Tue Feb 3 20:37:02 EST 2015


Hi:

I was trying to migrate my code from VTK-5 to VTK-6. I built shared and
static versions of VTK-6.1.0 on my linux machine. I can successfully build
my library with the shared VTK-6.1.0. However, when linking with static
libraries, I got several linking errors as follows.

/org/groups/hughes/juliu/lib/lin/VTK-6.1.0-static/lib/libvtkIOLegacy-6.1.a(vtkUnstructuredGridWriter.cxx.o):(.rodata._ZTV25vtkUnstructuredGridWriter[vtable
for vtkUnstructuredGridWriter]+0x1e0): undefined reference to
`vtkAlgorithm::ComputePriority()'

I cannot understand this error. According to the doxygen page, the
vtkAlgorithm class should be implemented in the vtkCommonExecutionModel-6.1
library, which I already linked to in my makefile.

Can anyone give a hint of what is going wrong in my case.

Many thanks,

Ju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150203/f48394ed/attachment.html>


More information about the vtkusers mailing list