作者shryuhuai ()
看板EE_DSnP
标题[问题] hw5 compile error
时间Wed Nov 23 20:26:42 2011
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:73: 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:73: error: ‘strchr’ was not declared in this scope
make[1]: *** [adtTest.o] Error 1
make: *** [main] Error 2
刚下载下来先compile试试看
结果就出现以上讯息
而且感觉不是这次作业要写的部份
求高手帮忙
--
传道者说;虚空的虚空,虚空的虚空,凡事都是虚空。
传道书1;2
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 175.182.120.234
1F:→ djshen:include<cstring> 11/23 20:29
2F:→ shryuhuai:感谢解答!! 11/23 20:42
3F:推 ric2k1:推!! 忘记 include 了,有的机器会过... 11/23 21:17