Cannot open include file: 'unistd.h': No such file or directory的解决办法

简介: Cannot open include file: 'unistd.h': No such file or directory的解决办法

在自己编译的include目录中,添加一个文件unistd.h

内容:


#ifndef _UNISTD_H
#define _UNISTD_H
#include <io.h>
#include <process.h>
#endif /* _UNISTD_H */


#define _UNISTD_H


#include <io.h>

#include <process.h>


#endif /* _UNISTD_H */


两个include是否必要不确定。


如果有其他需要定义的宏,可以直接在这里处理。

目录
打赏
0
0
0
0
17
分享
相关文章
Cannot open include file: 'unistd.h': No such file or directory的解决办法
Cannot open include file: 'unistd.h': No such file or directory的解决办法
755 0
Cannot open include file: '****.h': No such file or directory
我在解析libxml,使用libxml创建xml文件的时候,遇到了这个问题。   这个问题产生的主要原因是没找到对应的头文件,可以在系统中进行设置   比如vc 通过菜单栏中的工具--选项--目录--include File,把此头文件包含进去就可以了   在解析libxml的时候,需要引用到三个文件,分别的 zlib-1.2.5 libxml2-2.7.6.win32 iconv-1.9.2.win32   可以直接将这三个文件对应的内容设置到环境变量中,也可以直接拷到system32目录下,然后进行编译,OK,顺利通过。
1053 0
Cannot open include file: ‘Windows.h‘: No such file or directory
Cannot open include file: ‘Windows.h‘: No such file or directory
284 0
_mysql.c(42) : fatal error C1083: Cannot open include file: &#39;config-win.h&#39;:no such file or directory
Window7下使用“pip”安装“MySQL-python”提示错误:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':no such file or directory 安装命令: pip install MySQL-python在Linux下估计没问题。
1189 0
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':no such file or directory
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/51570178 ...
1678 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
253 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
ImportError: libcudart.so.9.2: cannot open shared object file: No such file or directory
ImportError: libcudart.so.9.2: cannot open shared object file: No such file or directory
185 0
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
411 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等