作者master1x4 (T-Bone)
看板EE_DSnP
標題makefile好像有問題....
時間Fri Dec 4 21:49:48 2009
正當我興高采烈地(?)想要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
1F:→ master1x4:怎麼會掛在myUsage.... 12/04 21:50
2F:推 bigheadcooL:include cstring 12/04 21:51
3F:推 ric2k1:#include <cstring> 12/04 21:51
4F:→ master1x4:感謝老師與樓樓上orz 12/04 21:56
5F:→ mymaydayya:不是之前的作業都缺這個嗎... 12/04 23:23
6F:→ master1x4:我發現最大的問題是常常寫好的東西會忘記XDDD 12/04 23:28