<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Radu,<br>Maybe the paths to .h files must be separately entered for Debug<br>and Release modes (same suggestion for VTK libs) ? I know it's the <br>case for Visual Studio 6.0.<br>HTH,<br>Philippe<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: "Ilinca, Radu" &lt;rilinca@cg.tuwien.ac.at&gt;<br>To: vtkusers@vtk.org<br>Sent: Wednesday, December 5, 2007 6:28:26 PM<br>Subject: [vtkusers] vtk
 under visual studio 2005<br><br>
Hi !<br><br>I am not that good in libraries but I want to get started with VTK 5.0 <br>under Visual Studio 2005 , win xp. I did all the steps from the book <br>(CMake, build the solution) , I copy-pasted the Cone example in a new <br>solution, set the project properties accordingly to the one in the demo
 <br>project and I ran in in the debug mode. I got the cone moving. However,
 <br>when I switched to Release, I got compiling erros , obviously the VS <br>could not include the .h files. Here are the compiling errors. I do not
 <br>understand :<br>a) Why didn't it work<br>b) If I was not good at specifying paths, then why does it work in the <br>debug mode ?<br><br>I would appreciate a step by step solution since I am not a programming
 <br>guru.<br><br>------ Rebuild All started: Project: Intro, Configuration: Release
 Win32 <br>------<br>Deleting intermediate and output files for project 'Intro', <br>configuration 'Release|Win32'<br>Compiling...<br>stdafx.cpp<br>Compiling...<br>Intro.cpp<br>.\Intro.cpp(40) : error C2065: 'vtkConeSource' : undeclared identifier<br>.\Intro.cpp(40) : error C2065: 'cone' : undeclared identifier<br>.\Intro.cpp(40) : error C2064: term does not evaluate to a function <br>taking 0 arguments<br>.\Intro.cpp(41) : error C2227: left of '-&gt;SetHeight' must point to <br>class/struct/union/generic type<br>&nbsp; &nbsp; &nbsp; &nbsp; type is ''unknown-type''<br>.\Intro.cpp(42) : error C2227: left of '-&gt;SetRadius' must point to <br>class/struct/union/generic type<br>&nbsp; &nbsp; &nbsp; &nbsp; type is ''unknown-type''<br>.\Intro.cpp(43) : error C2227: left of '-&gt;SetResolution' must point to <br>class/struct/union/generic type<br>&nbsp; &nbsp; &nbsp; &nbsp; type is ''unknown-type''<br>.\Intro.cpp(52) : error C2065: 'vtkPolyDataMapper' :
 undeclared
 identifier<br>.\Intro.cpp(52) : error C2065: 'coneMapper' : undeclared identifier<br>.\Intro.cpp(52) : error C2064: term does not evaluate to a function <br>taking 0 arguments<br>.\Intro.cpp(53) : error C2227: left of '-&gt;SetInputConnection' must
 point <br>to class/struct/union/generic type<br>&nbsp; &nbsp; &nbsp; &nbsp; type is ''unknown-type''<br>.\Intro.cpp(53) : error C2227: left of '-&gt;GetOutputPort' must point to <br>class/struct/union/generic type<br>&nbsp; &nbsp; &nbsp; &nbsp; type is ''unknown-type''<br>.\Intro.cpp(62) : error C2065: 'vtkActor' : undeclared identifier<br>.\Intro.cpp(62) : error C2065: 'coneActor' : undeclared identifier<br>.\Intro.cpp(62) : error C2064: term does not evaluate to a function <br>taking 0 arguments<br>.\Intro.cpp(63) : error C2227: left of '-&gt;SetMapper' must point to <br>class/struct/union/generic type<br>&nbsp;  eric type<br>&nbsp; <br>========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========<br><br><br>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at:
 <a rel="nofollow" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a rel="nofollow" target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div><br></div></div><br>



      <hr size="1">Never miss a thing.  <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>

</div><br></div></div><br>
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a></body></html>