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

Paul McGuinness mcguinpg at maths.tcd.ie
Mon Jun 23 10:06:58 EDT 2003


I get the same problem using vtkDataSetReader, is anyone having the same
problem?


Paul


On Fri, 20 Jun 2003, 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
>




More information about the vtkusers mailing list