作者exploer ((apple))
看板EE_DSnP
标题Re: [问题] 请问make
时间Tue May 20 22:02:17 2008
错误如下:
:-bash-3.1$ make a
Cleaning util...
Cleaning main...
Removing libutil.a...
Removing adtTest.array...
Checking util...
make[1]: *** No rule to make target `util.d', needed by `top'. Stop.
Checking main...
> compiling: adtTest.cpp
在包含自 adtTest.cpp:10 的档案中:
adtTest.h:41:25: 错误:array.h:没有此一档案或目录
adtTest.h:113: 错误:ISO C++ 不允许宣告无类型的 「Array」
adtTest.h:113: 错误:expected 「;」 before 「<」 token
adtTest.h:117: 错误:ISO C++ 不允许宣告无类型的 「Array」
adtTest.h:117: 错误:expected 「;」 before 「<」 token
adtTest.h:130: 错误:expected `;' before 「void」
adtTest.h:151: 错误:「Array」 未宣告
adtTest.h:151: 错误:expected 「,」 or 「...」 before 「<」 token
adtTest.h: In member function 「bool AdtTest::insert(const AdtTestObj&)」:
adtTest.h:86: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h: In member function 「void AdtTest::deleteAll()」:
adtTest.h:88: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h: In member function 「bool AdtTest::deleteValue(const AdtTestObj&)」
:
adtTest.h:89: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h: In member function 「void AdtTest::deleteFront(size_t)」:
adtTest.h:91: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h: In member function 「void AdtTest::deleteBack(size_t)」:
adtTest.h:93: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h: In member function 「void AdtTest::deleteRandom(size_t)」:
adtTest.h:95: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h:98: 错误:「getPos」 在此作用栏位中尚未宣告
adtTest.h: In member function 「void AdtTest::printForward()」:
adtTest.h:132: 错误:「Array」 在此作用栏位中尚未宣告
adtTest.h:132: 错误:expected primary-expression before 「>」 token
adtTest.h:132: 错误:missing template arguments before 「li」
adtTest.h:132: 错误:expected `;' before 「li」
adtTest.h:133: 错误:「li」 在此作用栏位中尚未宣告
adtTest.h:133: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h: In member function 「void AdtTest::printBackward()」:
adtTest.h:137: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h:138: 错误:「_container」 在此作用栏位中尚未宣告
adtTest.h:140: 错误:「Array」 在此作用栏位中尚未宣告
adtTest.h:140: 错误:expected primary-expression before 「>」 token
adtTest.h:140: 错误:missing template arguments before 「li」
adtTest.h:140: 错误:expected `;' before 「li」
adtTest.h:140: 错误:「li」 在此作用栏位中尚未宣告
adtTest.h: In member function 「void AdtTest::printData(size_t, int)」:
adtTest.h:153: 错误:「li」 在此作用栏位中尚未宣告
adtTest.h:154: 错误:「r」 在此作用栏位中尚未宣告
make[1]: *** [adtTest.o] Error 1
make: *** [all] Error 2
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.240.32
1F:推 ric2k1:看来你等一下再 make 就好了... 05/20 22:03
2F:→ exploer:> < 05/20 22:06
3F:推 chwan1:我也曾遇到这种错误耶 请问老师他是怎麽产生的阿? 05/20 22:27
4F:→ chwan1:为什麽过几分钟之後他会自动变好? 05/20 22:28
5F:推 ric2k1:就是存你 source code 的机器 (your home) 与你在 compile 05/20 22:34
6F:→ ric2k1:机器时间不同步... 05/20 22:34
7F:→ exploer:已经好了 谢谢教授和上面同学的发问 05/20 22:42
8F:推 chwan1:可是我用 vi 也出现这种情形耶 @@ 05/21 00:18