作者Hrothgar (小米....超小的....)
看板EE_DSnP
标题[讨论] 一个好奇怪的bug~
时间Sun May 17 13:19:51 2009
就是我写完array.h以後
想说compile 一下
> compiling: adtTest.cpp
adtTest.h:164: error: expected class-name before '{' token
adtTest.h:169: error: 'CmdExecStatus' does not name a type
adtTest.h:176: error: expected class-name before '{' token
adtTest.h:181: error: 'CmdExecStatus' does not name a type
adtTest.h:188: error: expected class-name before '{' token
adtTest.h:193: error: 'CmdExecStatus' does not name a type
adtTest.h:200: error: expected class-name before '{' token
adtTest.h:205: error: 'CmdExecStatus' does not name a type
adtTest.cpp: In function 'bool initAdtCmd()':
adtTest.cpp:21: error: 'cmdMgr' was not declared in this scope
adtTest.cpp: At global scope:
adtTest.cpp:44: error: 'CmdExecStatus' does not name a type
adtTest.cpp:74: error: 'CmdExecStatus' does not name a type
adtTest.cpp:122: error: 'CmdExecStatus' does not name a type
adtTest.cpp:186: error: 'CmdExecStatus' does not name a type
然後冒出了以上的error 囧.......
可是我也没有去改教授的reference code啊@@
至於我的array.h里,也没有少写{}之类的符号
可以请问教授这会是什麽样的问题吗@@"
//感觉我都会碰到一些怪bug....
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.250.69
※ 编辑: Hrothgar 来自: 140.112.250.69 (05/17 13:31)
1F:推 bnsblue:也许宣告完class的时候忘记加分号.. 05/17 13:34
2F:→ wanga10219:可能是include里面的cmdParse.h没有link到 05/17 17:28
3F:→ wanga10219:或是lib里的libcmd.a没有link到 05/17 17:29