Fw: [vtkusers] vtk under visual studio 2005

Philippe Bruyant pbruyant at yahoo.com
Thu Dec 6 02:12:26 EST 2007



Hi Radu,
Maybe the paths to .h files must be separately entered for Debug
and Release modes (same suggestion for VTK libs) ? I know it's the 
case for Visual Studio 6.0.
HTH,
Philippe

----- Original Message ----
From: "Ilinca, Radu" <rilinca at cg.tuwien.ac.at>
To: vtkusers at vtk.org
Sent: Wednesday, December 5, 2007 6:28:26 PM
Subject: [vtkusers] vtk under visual studio 2005


Hi !

I am not that good in libraries but I want to get started with VTK 5.0 
under Visual Studio 2005 , win xp. I did all the steps from the book 
(CMake, build the solution) , I copy-pasted the Cone example in a new 
solution, set the project properties accordingly to the one in the demo
 
project and I ran in in the debug mode. I got the cone moving. However,
 
when I switched to Release, I got compiling erros , obviously the VS 
could not include the .h files. Here are the compiling errors. I do not
 
understand :
a) Why didn't it work
b) If I was not good at specifying paths, then why does it work in the 
debug mode ?

I would appreciate a step by step solution since I am not a programming
 
guru.

------ Rebuild All started: Project: Intro, Configuration: Release
 Win32 
------
Deleting intermediate and output files for project 'Intro', 
configuration 'Release|Win32'
Compiling...
stdafx.cpp
Compiling...
Intro.cpp
.\Intro.cpp(40) : error C2065: 'vtkConeSource' : undeclared identifier
.\Intro.cpp(40) : error C2065: 'cone' : undeclared identifier
.\Intro.cpp(40) : error C2064: term does not evaluate to a function 
taking 0 arguments
.\Intro.cpp(41) : error C2227: left of '->SetHeight' must point to 
class/struct/union/generic type
        type is ''unknown-type''
.\Intro.cpp(42) : error C2227: left of '->SetRadius' must point to 
class/struct/union/generic type
        type is ''unknown-type''
.\Intro.cpp(43) : error C2227: left of '->SetResolution' must point to 
class/struct/union/generic type
        type is ''unknown-type''
.\Intro.cpp(52) : error C2065: 'vtkPolyDataMapper' :
 undeclared
 identifier
.\Intro.cpp(52) : error C2065: 'coneMapper' : undeclared identifier
.\Intro.cpp(52) : error C2064: term does not evaluate to a function 
taking 0 arguments
.\Intro.cpp(53) : error C2227: left of '->SetInputConnection' must
 point 
to class/struct/union/generic type
        type is ''unknown-type''
.\Intro.cpp(53) : error C2227: left of '->GetOutputPort' must point to 
class/struct/union/generic type
        type is ''unknown-type''
.\Intro.cpp(62) : error C2065: 'vtkActor' : undeclared identifier
.\Intro.cpp(62) : error C2065: 'coneActor' : undeclared identifier
.\Intro.cpp(62) : error C2064: term does not evaluate to a function 
taking 0 arguments
.\Intro.cpp(63) : error C2227: left of '->SetMapper' must point to 
class/struct/union/generic type
   eric type
  
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
 http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers









      Never miss a thing.   Make Yahoo your homepage.







      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071205/92219ceb/attachment.htm>


More information about the vtkusers mailing list