[vtkusers] vtk under visual studio 2005
Ilinca, Radu
rilinca at cg.tuwien.ac.at
Wed Dec 5 12:28:26 EST 2007
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 ==========
More information about the vtkusers
mailing list