[vtkusers] Link error when using Delaunay2D

Kusa Y kusanagirong at hotmail.co.uk
Wed Mar 2 19:20:49 EST 2011


Hello,I am working on a project which requires the Delaunay triangulation operation. I decided to use vtk Delaunay2D class to do this task.I garbed the vtk 5.6 source and built it by using MSVC 10 in windows 7.In the project properties->VC++ Directories->Include Directories, I added the vtk h files location.In the project properties->VC++ Directories->Library Directories, I added the lib file location.I also put put vtkCommon.lib;vtkFiltering.lib;vtkGraphics.lib;vtkGenericFiltering.lib;vtkDICOMParser.lib to project properties->Linker->Input->Additional Dependencies.When I compile my project, I got following compiling errors, it seems that I have told the compiler where is the function body of the vtk functions, but I think to set the additional dependencies should solve the problem. I also tried to added the vtk lib folder to the windows environment variable->path, have gotten luck :(Anyone has any idea how can I solve the problem ?1>  Generating Code...1>  Compiling...1>  Color.cpp1>  Generating Code...1>lsMeshGenerator.obj : error LNK2019: unresolved external symbol "public: class vtkCellArray * __thiscall vtkPolyData::GetPolys(void)" (?GetPolys at vtkPolyData@@QAEPAVvtkCellArray@@XZ) referenced in function "public: class lsMesh * __thiscall MeshGenerator::ConvertVTKPolyDataToLSMesh(class lsMesh *,class vtkDelaunay2D *)" (?ConvertVTKPolyDataToLSMesh at MeshGenerator@@QAEPAVlsMesh@@PAV2 at PAVvtkDelaunay2D@@@Z)1>lsMeshGenerator.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkPolyData::BuildLinks(int)" (?BuildLinks at vtkPolyData@@QAEXH at Z) referenced in function "public: class lsMesh * __thiscall MeshGenerator::ConvertVTKPolyDataToLSMesh(class lsMesh *,class vtkDelaunay2D *)" (?ConvertVTKPolyDataToLSMesh at MeshGenerator@@QAEPAVlsMesh@@PAV2 at PAVvtkDelaunay2D@@@Z)1>lsMeshGenerator.obj : error LNK2019: unresolved external symbol "public: class vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)" (?GetOutput at vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced in function "public: class lsMesh * __thiscall MeshGenerator::ConvertVTKPolyDataToLSMesh(class lsMesh *,class vtkDelaunay2D *)" (?ConvertVTKPolyDataToLSMesh at MeshGenerator@@QAEPAVlsMesh@@PAV2 at PAVvtkDelaunay2D@@@Z)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkDelaunay2D::SetSource(class vtkPolyData *)" (?SetSource at vtkDelaunay2D@@QAEXPAVvtkPolyData@@@Z) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke at lsStrokeModel@@QAEXXZ)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkPolyDataAlgorithm::SetInput(class vtkDataObject *)" (?SetInput at vtkPolyDataAlgorithm@@QAEXPAVvtkDataObject@@@Z) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke at lsStrokeModel@@QAEXXZ)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkDelaunay2D * __cdecl vtkDelaunay2D::New(void)" (?New at vtkDelaunay2D@@SAPAV1 at XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke at lsStrokeModel@@QAEXXZ)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkPolyData::SetPolys(class vtkCellArray *)" (?SetPolys at vtkPolyData@@QAEXPAVvtkCellArray@@@Z) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke at lsStrokeModel@@QAEXXZ)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkPolyData * __cdecl vtkPolyData::New(void)" (?New at vtkPolyData@@SAPAV1 at XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke at lsStrokeModel@@QAEXXZ)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkCellArray * __cdecl vtkCellArray::New(void)" (?New at vtkCellArray@@SAPAV1 at XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke at lsStrokeModel@@QAEXXZ)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkPoints * __cdecl vtkPoints::New(void)" (?New at vtkPoints@@SAPAV1 at XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke at lsStrokeModel@@QAEXXZ)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: __int64 __thiscall vtkDataArrayTemplate<__int64>::InsertNextValue(__int64)" (?InsertNextValue@?$vtkDataArrayTemplate at _J@@QAE_J_J at Z) referenced in function "public: __int64 __thiscall vtkIdTypeArray::InsertNextValue(__int64)" (?InsertNextValue at vtkIdTypeArray@@QAE_J_J at Z)1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkDataArrayTemplate<__int64>::InsertValue(__int64,__int64)" (?InsertValue@?$vtkDataArrayTemplate at _J@@QAEX_J0 at Z) referenced in function "public: void __thiscall vtkIdTypeArray::InsertValue(__int64,__int64)" (?InsertValue at vtkIdTypeArray@@QAEX_J0 at Z)Cheers!Rong 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110303/4bbd2adb/attachment.htm>


More information about the vtkusers mailing list