[vtkusers] error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

Maryam979 maryam_136 at yahoo.com
Sun May 5 16:27:53 EDT 2013


Hi every one

I have some problems in running vtk code.


1>Linking...
1>alaki.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkRenderer::AddActor(class vtkProp *)"
(?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function
_WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow
*)" (?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)
referenced in function _WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderWindowInteractor * __cdecl
vtkRenderWindowInteractor::New(void)"
(?New at vtkRenderWindowInteractor@@SAPAV1 at XZ) referenced in function
_WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)"
(?New at vtkRenderWindow@@SAPAV1 at XZ) referenced in function _WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderer * __cdecl vtkRenderer::New(void)"
(?New at vtkRenderer@@SAPAV1 at XZ) referenced in function _WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: static
class vtkActor * __cdecl vtkActor::New(void)" (?New at vtkActor@@SAPAV1 at XZ)
referenced in function _WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)"
(?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) referenced in function
_WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: class
vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)"
(?GetOutput at vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced in
function _WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: static
class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)"
(?New at vtkPolyDataMapper@@SAPAV1 at XZ) referenced in function _WinMain at 16
1>alaki.obj : error LNK2019: unresolved external symbol "public: static
class vtkSphereSource * __cdecl vtkSphereSource::New(void)"
(?New at vtkSphereSource@@SAPAV1 at XZ) referenced in function _WinMain at 16
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main
referenced in function ___tmainCRTStartup
1>C:\Users\REZA\Documents\Visual Studio 2008\Projects\alaki\Debug\alaki.exe
: fatal error LNK1120: 11 unresolved externals
1>Build log was saved at "file://c:\Users\REZA\Documents\Visual Studio
2008\Projects\alaki\alaki\Debug\BuildLog.htm"
1>alaki - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Can anyone help me to fix the link errors I'm getting .



--
View this message in context: http://vtk.1045678.n5.nabble.com/error-LNK2019-unresolved-external-symbol-main-referenced-in-function-tmainCRTStartup-tp5720569.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list