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?
<br><br>
<hr align="left" width="577" size="1" color="cccccc">
<table cellpadding="1" cellspacing="1" border="0" >
<tr>
<td style="font-size: 14px"><a href="http://chat1.tom.com:8724/login" target="_blank">未婚禁入</a> <a href="http://chat3.tom.com:8720/login"
target="_blank">婚外恋情</a> <a href="http://chat3.tom.com:8632/login" target="_blank">北京</a> <a
href="http://chat1.tom.com:8062/login" target="_blank">上海</a>
<a href="http://chat3.tom.com:8701/login" target="_blank">广州</a> <a href="http://chat3.tom.com:8702/login" target="_blank">
深圳</a></td>
</tr>
<tr>
<td nowrap style="font-size: 14px"><a href="http://skype.tom.com/" target="_blank">体验口对口的真实感觉</a></td>
</tr>
<tr>
<td style="font-size: 14px"><a href="http://sms1.ctn.com.cn/ivr/usms_ivr_free_song_01_1_0.htm?user_id=3&code_id=w006" target="_blank"><font color="red">劲歌、金曲,流行、怀旧 免费随你点!!!</font></a></td>
</tr>
<!--tr>
<td style="font-size: 14px"><a href="http://search.tom.com/mp3/" target="_blank">送你10万首MP3金曲,点此下载</a></td>
</tr-->
</table>
<table cellpadding="1" cellspacing="1" border="0" style="margin-top:10px;">
<tr>
<td nowrap style="font-size: 14px"><a href="http://vip.163.net" target="_blank"><font color="#ff0000"> 163收费邮箱无条件全面升级,升幅强劲,加量不加价!<br>
更强安全系统,更大容量!一样的价格,不一样的空间!</font></a></td>
</tr>
<tr>
<td nowrap style="font-size: 14px"><a href="http://vip.163.net" target="_blank"><font color="#000000"> 邮箱订购及咨询热线(24小时):8008309163 或 020-87324711</font></a></td>
</tr>
</table>