makefile好像有問題....

看板EE_DSnP作者 (T-Bone)時間14年前 (2009/12/04 21:49), 編輯推噓2(204)
留言6則, 4人參與, 最新討論串1/1
正當我興高采烈地(?)想要make d的時候 結果出現下面這樣的error message.... 有沒有人遇到這樣的狀況啊? 囧斃了!!!! Cleaning util... Cleaning main... Removing libutil.a... Removing adtTest.dlist... Checking util... > compiling: myGetChar.cpp > compiling: myString.cpp > compiling: util.cpp In file included from util.cpp:9: myUsage.h: In member function 'double MyUsage::checkMem() const': myUsage.h:71: error: 'strncmp' was not declared in this scope myUsage.h:72: error: 'strchr' was not declared in this scope make[1]: *** [util.o] Error 1 Checking main... > compiling: adtTest.cpp In file included from ../../include/util.h:13, from adtTest.cpp:9: ../../include/myUsage.h: In member function 'double MyUsage::checkMem() const': ../../include/myUsage.h:71: error: 'strncmp' was not declared in this scope ../../include/myUsage.h:72: error: 'strchr' was not declared in this scope ../../include/dlist.h: In member function 'bool DList<T>::iterator::operator!=(const DList<T>::iterator&) const [with T = AdtTestObj]': adtTest.h:127: instantiated from here ../../include/dlist.h:88: error: base operand of '->' has non-pointer type 'const DList<AdtTestObj>::iterator' ../../include/dlist.h: In member function 'DList<T>::iterator& DList<T>::iterator::operator--() [with T = AdtTestObj]': adtTest.h:141: instantiated from here ../../include/dlist.h:71: error: 'class DListNode<AdtTestObj>' has no member named 'prev' make[1]: *** [adtTest.o] Error 1 make: *** [main] Error 2 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.4.234

12/04 21:50, , 1F
怎麼會掛在myUsage....
12/04 21:50, 1F

12/04 21:51, , 2F
include cstring
12/04 21:51, 2F

12/04 21:51, , 3F
#include <cstring>
12/04 21:51, 3F

12/04 21:56, , 4F
感謝老師與樓樓上orz
12/04 21:56, 4F

12/04 23:23, , 5F
不是之前的作業都缺這個嗎...
12/04 23:23, 5F

12/04 23:28, , 6F
我發現最大的問題是常常寫好的東西會忘記XDDD
12/04 23:28, 6F
文章代碼(AID): #1B6HD_Et (EE_DSnP)