[vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)'
Paul McGuinness
mcguinpg at maths.tcd.ie
Fri Jun 20 09:55:00 EDT 2003
Hi VTK Developers
I am in a bit of a pickel, I am on Linux using the cmake, then make to
compile my simple program containing the following code:
#include "vtkSTLReader.h"
int main( int argc, char *argv[] )
{
vtkSTLReader *sr = vtkSTLReader::New();
sr->SetFileName("y40501.stl");
sr->Delete();
return 0;
}
And on compilation I get the following error, does anyone know what is
wrong? I am using VTK-4.2.2
$ make
Building dependencies cmake.check_depends...
-- Compiling VTK loaded commands
-- Compiling VTK loaded commands - done
Building object file STLreadtest.o...
Building executable STLreadtest...
STLreadtest.o: In function `main':
STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)'
collect2: ld returned 1 exit status
make[1]: *** [STLreadtest] Error 1
make: *** [default_target] Error 2
Does anyone know how I can fix this?
Many thanks,
Paul.
More information about the vtkusers
mailing list