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

Ning Cao ningcao at uky.edu
Mon Nov 1 21:33:42 EST 2004


hi,
   are the two project in the same path?
   have you run cmake in the new source tree?
   
----- Original Message ----- 
From: Savage 
To: vtkusers at vtk.org 
Sent: Monday, November 01, 2004 9:25 PM
Subject: [vtkusers] Why my project cannot run in another PC?(CXX)


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? 



未婚禁入 婚外恋情 北京 上海 广州 深圳
体验口对口的真实感觉
劲歌、金曲,流行、怀旧 免费随你点!!!
163收费邮箱无条件全面升级,升幅强劲,加量不加价!
更强安全系统,更大容量!一样的价格,不一样的空间!
邮箱订购及咨询热线(24小时):8008309163 或 020-87324711




_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


More information about the vtkusers mailing list