<font size="2"><font face="verdana,sans-serif">Adding the following lines to main.cpp file works for me (keeping default CMake options):</font></font><div><font size="2"><font face="verdana,sans-serif"><br></font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><div>#ifdef _WINDOWS</div><div>#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"") //disables cmd window in VS2008</div>
<div>#endif</div></font></font><br><div class="gmail_quote">On Thu, Apr 28, 2011 at 23:40, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> I might be missing some information here then. I used QT VS 2008 plugin for<br>
> creating teh QT App, added QVTK Widget and never got this problem.<br>
><br>
<br>
</div>We were talking about creating your project with CMake as the project<br>
generator. Not with any Visual Studio widget. Also not by creating a<br>
visual studio solution directly then handling the includes and linking<br>
on your own.<br>
<div class="im"><br>
> GG, i would suggest that you add a wiki entry at VTK Wiki for this problem's<br>
> resolution, will be helpful for others.<br>
><br>
<br>
</div><div><div></div><div class="h5">John<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>
</div></div></blockquote></div><br></div>