[vtkusers] Once Again....because i didnt get reply the first

Mathieu Malaterre mathieu.malaterre at kitware.com
Sat Oct 16 20:25:45 EDT 2004


p3rdigao,

I bet you didn't link againt vtkIO (where vtkDataSetReader is defined), so the linker can not find the symbol.

HTH
Mathieu

> 
> The Progran in VS .Net 2003
>  
> #include "vtkDataSetReader.h"
> 
> #include "vtkDataSetWriter.h" 
> 
> #include "vtkDataSet.h"
> 
> void main(int argc, char *argv[]){
> 
> vtkDataSetReader* reader = vtkDataSetReader::New(); 
> 
> reader->SetFileName("c:\braquial.vtk"); 
> 
> reader->GetOutput();
> 
> vtkDataSetWriter *writer=NULL;
> 
> writer->SetFileName("foo-ascii.vtk");
> 
>  
> 
> }
> 
>  
> 
> The errors
> 
>  
> 
> 1) test error LNK2001: unresolved external symbol "public: class vtkDataSet * __thiscall vtkDataSetReader::GetOutput(void)" (?GetOutput at vtkDataSetReader@@$$FQAEPAVvtkDataSet@@XZ)
> 
> 
>  
> 
> ~2) test error LNK2001: unresolved external symbol "public: static class vtkDataSetReader * __cdecl vtkDataSetReader::New(void)" (?New at vtkDataSetReader@@$$FSAPAV1 at XZ)
> 
> 
>  
> 
>  
> 
>  
> 
> 3) test fatal error LNK1120: 2 unresolved externals
> 
> 
> 
>  
> 
>  
> 
>  
> 
>  
> 
> _______________________________________________
> 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