makefile好像有問題....
正當我興高采烈地(?)想要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
12/04 21:50, 1F
推
12/04 21:51, , 2F
12/04 21:51, 2F
推
12/04 21:51, , 3F
12/04 21:51, 3F
→
12/04 21:56, , 4F
12/04 21:56, 4F
→
12/04 23:23, , 5F
12/04 23:23, 5F
→
12/04 23:28, , 6F
12/04 23:28, 6F