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