[vtkusers] new project creation

Mina Haratian mina.hrtn at gmail.com
Mon Jun 30 14:35:57 EDT 2014


Hi,

I have installed and compiled the vtk 6.1 on vc++ 2008, and I can run the
examples. I want to create a new project and read and write MHD raw files.
When I tried to compile the program. I got unresolved external symbol
error. Could you please help be solve this problem?

1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class
vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in
function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)"
(__imp_?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkRenderWindowInteractor *
__cdecl vtkRenderWindowInteractor::New(void)"
(__imp_?New at vtkRenderWindowInteractor@@SAPAV1 at XZ) referenced in function
_main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkRenderWindow * __cdecl
vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ)
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkRenderer * __cdecl
vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ) referenced in
function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkActor * __cdecl
vtkActor::New(void)" (__imp_?New at vtkActor@@SAPAV1 at XZ) referenced in
function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
vtkPolyDataMapper::SetInputData(class vtkPolyData *)"
(__imp_?SetInputData at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) referenced
in function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class vtkPolyData * __thiscall
vtkPolyDataAlgorithm::GetOutput(void)"
(__imp_?GetOutput at vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced
in function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl
vtkPolyDataMapper::New(void)" (__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ)
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkSphereSource * __cdecl
vtkSphereSource::New(void)" (__imp_?New at vtkSphereSource@@SAPAV1 at XZ)
referenced in function _main
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol
_WinMain at 16 referenced in function ___tmainCRTStartup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140630/c8b1135f/attachment.html>


More information about the vtkusers mailing list