[vtkusers] Linking errors

p3rdigao p3rdigao at netcabo.pt
Tue Sep 14 16:09:45 EDT 2004


Hello I compile this program...

#include "vtkDataSetReader.h"

#include "vtkDataSetWriter.h" 

#include "vtkDataSet.h"

void main(void){

      vtkDataSetReader *Reader = vtkDataSetReader::New();

      Reader->SetFileName("c:\braquial.vtk");

     vtkDataSet *dataSet = (vtkDataSet*)vtkDataSet::New();

     dataSet = Reader->GetOutput(); 

}

but in the end the result are these 4  linkage errors:

1) LNK2001: unresolved external symbol "public: class vtkDataSet * __thiscall vtkDataSetReader::GetOutput(void)" (?GetOutput at vtkDataSetReader@@$$FQAEPAVvtkDataSet@@XZ)

2) LNK2001: unresolved external symbol "public: static class vtkDataObject * __cdecl vtkDataObject::New(void)" (?New at vtkDataObject@@$$FSAPAV1 at XZ)

3) LNK2001: unresolved external symbol "public: static class vtkDataSetReader * __cdecl vtkDataSetReader::New(void)" (? <mailto:?New at vtkDataSetReader@@$$FSAPAV1 at XZ> New at vtkDataSetReader@@$$FSAPAV1 at XZ)


4) test fatal error LNK1120: 3 unresolved externals

So what is the problem?

thanks


 

 




More information about the vtkusers mailing list