[vtkusers] Why my project cannot run in another PC?(CXX)

Savage sqsavage at tom.com
Mon Nov 1 21:25:51 EST 2004


Why my project cannot run in another PC?(CXX)

I build the vtk-example ‘Cone.xx” using CMake. Now the project(VC6) can run successfully in my PC. But When I copy the hold project folder to another PC and run it, the VC give me an error:
Build : warning : could not create output directory 'F:\VTKLearning\VTKExample\Cone'  ALL_BUILD - 1 error(s), 0 warning(s)

Why?

Anther question: I copy all the source code of the cone.cxx and create another new project instead of using CMake. Run it , then VC6.0 told me this:
--------------------Configuration: AnyCone - Win32 Debug--------------------
Compiling...
AnyCone.c
f:\vtklearning\vtk42\include\vtk\vtkidtype.h(51) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkidtype.h(52) : error C2085: 'vtkIdTypeHolder' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkidtype.h(52) : error C2143: syntax error : missing ';' before '{'
f:\vtklearning\vtk42\include\vtk\vtkidtype.h(59) : error C2143: syntax error : missing '{' before '&'
f:\vtklearning\vtk42\include\vtk\vtkidtype.h(59) : error C2059: syntax error : '&'
f:\vtklearning\vtk42\include\vtk\vtkidtype.h(60) : error C2143: syntax error : missing '{' before '&'
f:\vtklearning\vtk42\include\vtk\vtkidtype.h(60) : error C2059: syntax error : '&'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(34) : error C2061: syntax error : identifier 'vtkIndent'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(34) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(35) : error C2061: syntax error : identifier 'vtkObjectBase'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(35) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(36) : error C2061: syntax error : identifier 'vtkLargeInteger'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(36) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(37) : error C2061: syntax error : identifier 'vtkSmartPointerBase'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(37) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(39) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(40) : error C2085: 'vtkOStreamWrapper' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkostreamwrapper.h(40) : error C2143: syntax error : missing ';' before '{'
f:\vtklearning\vtk42\include\vtk\vtkostrstreamwrapper.h(34) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkostrstreamwrapper.h(34) : error C2085: 'vtkOStrStreamWrapper' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkostrstreamwrapper.h(34) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkindent.h(29) : error C2061: syntax error : identifier 'vtkIndent'
f:\vtklearning\vtk42\include\vtk\vtkindent.h(29) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkindent.h(30) : error C2143: syntax error : missing '{' before '&'
f:\vtklearning\vtk42\include\vtk\vtkindent.h(30) : error C2059: syntax error : '&'
f:\vtklearning\vtk42\include\vtk\vtkindent.h(32) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkindent.h(33) : error C2085: 'vtkIndent' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkindent.h(33) : error C2143: syntax error : missing ';' before '{'
f:\vtklearning\vtk42\include\vtk\vtkobjectbase.h(49) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkobjectbase.h(50) : error C2085: 'vtkObjectBase' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkobjectbase.h(50) : error C2143: syntax error : missing ';' before '{'
f:\vtklearning\vtk42\include\vtk\vtktimestamp.h(31) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtktimestamp.h(32) : error C2085: 'vtkTimeStamp' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtktimestamp.h(32) : error C2143: syntax error : missing ';' before '{'
f:\vtklearning\vtk42\include\vtk\vtkobject.h(48) : error C2061: syntax error : identifier 'vtkSubjectHelper'
f:\vtklearning\vtk42\include\vtk\vtkobject.h(48) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkobject.h(49) : error C2061: syntax error : identifier 'vtkCommand'
f:\vtklearning\vtk42\include\vtk\vtkobject.h(49) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkobject.h(51) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkobject.h(51) : error C2085: 'vtkObject' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkobject.h(51) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkprocessobject.h(54) : error C2061: syntax error : identifier 'vtkDataObject'
f:\vtklearning\vtk42\include\vtk\vtkprocessobject.h(54) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkprocessobject.h(56) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkprocessobject.h(56) : error C2085: 'vtkProcessObject' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkprocessobject.h(56) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtksource.h(50) : error C2061: syntax error : identifier 'vtkDataObject'
f:\vtklearning\vtk42\include\vtk\vtksource.h(50) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtksource.h(51) : error C2061: syntax error : identifier 'vtkErrorCode'
f:\vtklearning\vtk42\include\vtk\vtksource.h(51) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtksource.h(53) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtksource.h(53) : error C2085: 'vtkSource' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtksource.h(53) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkpolydatasource.h(34) : error C2061: syntax error : identifier 'vtkPolyData'
f:\vtklearning\vtk42\include\vtk\vtkpolydatasource.h(34) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkpolydatasource.h(36) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkpolydatasource.h(36) : error C2085: 'vtkPolyDataSource' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkpolydatasource.h(36) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(29) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(29) : error C2085: 'vtkIdList' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(29) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(123) : error C2054: expected '(' to follow 'inline'
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(123) : error C2085: 'vtkIdList' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(123) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(133) : error C2054: expected '(' to follow 'inline'
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(133) : error C2085: 'vtkIdList' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkidlist.h(133) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(48) : error C2061: syntax error : identifier 'vtkCellArray'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(48) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(49) : error C2061: syntax error : identifier 'vtkCellData'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(49) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(50) : error C2061: syntax error : identifier 'vtkDataArray'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(50) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(51) : error C2061: syntax error : identifier 'vtkPointData'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(51) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(52) : error C2061: syntax error : identifier 'vtkPointLocator'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(52) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(53) : error C2061: syntax error : identifier 'vtkPoints'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(53) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(55) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkcell.h(55) : error C2085: 'vtkCell' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkcell.h(55) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkconesource.h(37) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkconesource.h(37) : error C2085: 'vtkConeSource' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkconesource.h(37) : error C2143: syntax error : missing ';' before ':'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(42) : error C2061: syntax error : identifier 'vtkDataArray'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(42) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(43) : error C2061: syntax error : identifier 'vtkDataSet'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(43) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(44) : error C2061: syntax error : identifier 'vtkPlane'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(44) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(45) : error C2061: syntax error : identifier 'vtkPlaneCollection'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(45) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(46) : error C2061: syntax error : identifier 'vtkPlanes'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(46) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(47) : error C2061: syntax error : identifier 'vtkTimerLog'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(47) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(48) : error C2061: syntax error : identifier 'vtkWindow'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(48) : error C2059: syntax error : ';'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(50) : error C2054: expected '(' to follow 'class'
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(50) : error C2085: 'vtkAbstractMapper' : not in formal parameter list
f:\vtklearning\vtk42\include\vtk\vtkabstractmapper.h(50) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

AnyCone.exe - 102 error(s), 0 warning(s)

How can I solute this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041102/67380a48/attachment.htm>


More information about the vtkusers mailing list