为什么找不到#include头文件??
嵌入式电子 2003-09-07 10:55:59 我在windows下 对socket进行非阻塞方式设置时 加入如下两个头文件
#include<unistd.h>
#include<fcntl.h>
结果编译时 出错
E:\Server\MainFrm.cpp(7) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
如果我不加这个头文件,就会
erver\MainFrm.cpp(319) : error C2065: 'fcntl' : undeclared identifier
E:\Server\MainFrm.cpp(319) : error C2065: 'sockfd' : undeclared identifier
E:\Server\MainFrm.cpp(319) : error C2065: 'F_SEREL' : undeclared identifier
E:\Server\MainFrm.cpp(319) : error C2065: 'O_NONBLOCK' : undeclared identifier
Error executing cl.exe.
请高手指点!!!!!!!!!!!!!!