[问题] PA3 chdir() was not declared

楼主: mhnp1580 (小路尼)   2013-04-26 15:59:38
我在cmdmgrTutorial这个资料夹里面make时
产生了以下的error message:
sys_cmd.cpp: In member function ‘virtual bool CommonNs::SysCdCmd::exec(int,
char**)’:
sys_cmd.cpp:136:23: error: ‘chdir’ was not declared in this scope
sys_cmd.cpp:144:26: error: ‘chdir’ was not declared in this scope
上网google了发现是要include <unistd.h>这个header
include之后就可以顺利compile了
但是其他人好像都没有这个问题
想要请问为什么会发生这个状况
谢谢~
作者: shefiroth26 (shefiroth)   2013-04-26 16:31:00
同学你换其他台工作站重新编译后还会有这个讯息吗?
作者: SamsungDog (三星王)   2013-04-30 16:58:00
我用我MBP写的时候也有这情况0.0
作者: shefiroth26 (shefiroth)   2013-05-02 22:42:00
请同学在缴交档案前记得在指定的工作上测试过

Links booklink

Contact Us: admin [ a t ] ucptt.com