作者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