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

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Fri Jun 20 10:24:41 EDT 2003


Paul,
	Could you please turn CMAKE_VERBOSE_MAKEFILE to ON (either through the 
cmake interface or by modifying CMakeCache.txt :

CMAKE_VERBOSE_MAKEFILE:BOOL=ON

Then rerun cmake && make and please send us the g++ compilation line

Thanks,
mathieu

Paul McGuinness wrote:
> 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.
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/




More information about the vtkusers mailing list