[vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)'

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Tue Jun 24 07:59:06 EDT 2003


Paul,
	Have a look at the line you sent :

> c++         -I/usr/X11R6/include -fPIC  stlreadtest.o    -o stlreadtest
> -rdynamic -L/usr/local/lib/vtk -L/usr/X11R6/lib -lvtkRendering
> -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -lpthread -ldl -lm
> -lSM -lICE -lSM -lICE -lX11 -lXext -lX11 -lXext -lvtkftgl -lGLU -lGL
> -lvtkfreetype -lXt -lSM -lICE -lX11 -lXext


all IO stuff are located in the VTK/IO directory and in the library 
libvtkIO.so so if you need to use them, you need to add them... logic ;)

Add -lvtkIO to the linkage step or in your CMakeLists.txt change it to:

LINK_LIBRARIES (
[snip]
vtkIO
)



HTH
mathieu




More information about the vtkusers mailing list