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

Ju LIU liujuy at gmail.com
Wed Feb 4 13:39:22 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.

/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/20150204/1336d507/attachment.html>


More information about the vtkusers mailing list