<div dir="ltr"><div><div><div><div>Hi,<br></div>looks like your linker is unable to find the VTK symbols defined in the external libraries. You may want to make sure whether the libraries to link with are really known to your project. If you are not using CMake to build your project, you are highly advised to do so. It will help you enormously in avoiding this kind of issues.<br>
</div> <br></div>You may want to have a look at the examples in the <a href="http://www.vtk.org/Wiki/VTK/Examples">VTK wiki</a>. Or you may want to dig in earlier posts, such as <a href="http://vtk.1045678.n5.nabble.com/error-LNK2019-unresolved-external-symbol-quot-public-class-vtkCamera-thiscall-vtkRenderer-GetActiveC-td1239473.html">this one</a>, to see whether your problem has been previously asked and hopefully solved.<br>
<br>HTH.<br><br>Kind regards,<br></div>JON HAITZ<br><br><div><div><br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 5 May 2013 22:27, Maryam979 <span dir="ltr">&lt;<a href="mailto:maryam_136@yahoo.com" target="_blank">maryam_136@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi every one<br>
<br>
I have some problems in running vtk code.<br>
<br>
<br>
1&gt;Linking...<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: void<br>
__thiscall vtkRenderer::AddActor(class vtkProp *)&quot;<br>
(?AddActor@vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function<br>
_WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: void<br>
__thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow<br>
*)&quot; (?SetRenderWindow@vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)<br>
referenced in function _WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: static<br>
class vtkRenderWindowInteractor * __cdecl<br>
vtkRenderWindowInteractor::New(void)&quot;<br>
(?New@vtkRenderWindowInteractor@@SAPAV1@XZ) referenced in function<br>
_WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: static<br>
class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)&quot;<br>
(?New@vtkRenderWindow@@SAPAV1@XZ) referenced in function _WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: static<br>
class vtkRenderer * __cdecl vtkRenderer::New(void)&quot;<br>
(?New@vtkRenderer@@SAPAV1@XZ) referenced in function _WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: static<br>
class vtkActor * __cdecl vtkActor::New(void)&quot; (?New@vtkActor@@SAPAV1@XZ)<br>
referenced in function _WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: void<br>
__thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)&quot;<br>
(?SetInput@vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) referenced in function<br>
_WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: class<br>
vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)&quot;<br>
(?GetOutput@vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced in<br>
function _WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: static<br>
class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)&quot;<br>
(?New@vtkPolyDataMapper@@SAPAV1@XZ) referenced in function _WinMain@16<br>
1&gt;alaki.obj : error LNK2019: unresolved external symbol &quot;public: static<br>
class vtkSphereSource * __cdecl vtkSphereSource::New(void)&quot;<br>
(?New@vtkSphereSource@@SAPAV1@XZ) referenced in function _WinMain@16<br>
1&gt;MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main<br>
referenced in function ___tmainCRTStartup<br>
1&gt;C:\Users\REZA\Documents\Visual Studio 2008\Projects\alaki\Debug\alaki.exe<br>
: fatal error LNK1120: 11 unresolved externals<br>
1&gt;Build log was saved at &quot;file://c:\Users\REZA\Documents\Visual Studio<br>
2008\Projects\alaki\alaki\Debug\BuildLog.htm&quot;<br>
1&gt;alaki - 12 error(s), 0 warning(s)<br>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br>
<br>
<br>
<br>
Can anyone help me to fix the link errors I&#39;m getting .<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/error-LNK2019-unresolved-external-symbol-main-referenced-in-function-tmainCRTStartup-tp5720569.html" target="_blank">http://vtk.1045678.n5.nabble.com/error-LNK2019-unresolved-external-symbol-main-referenced-in-function-tmainCRTStartup-tp5720569.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div></div></div></div></div></div></div>