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 */

#define _UNISTD_H


#include <io.h>

#include <process.h>


#endif /* _UNISTD_H */


         

两个include是否必要不确定。

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

目录
相关文章
|
12月前
libfreetype.so.6: cannot open shared object file: No such file or directory
libfreetype.so.6: cannot open shared object file: No such file or directory
462 0
|
机器学习/深度学习 Linux
解决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
216 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
|
6月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
79 0
完美解决common_define.h: No such file or directory
完美解决common_define.h: No such file or directory
233 0
完美解决common_define.h: No such file or directory
|
并行计算 TensorFlow 算法框架/工具
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
290 0
|
Windows
Cannot open include file: ‘Windows.h‘: No such file or directory
Cannot open include file: ‘Windows.h‘: No such file or directory
261 0
fatal error C1083: 无法打开包括文件:“fenv.h”: No such file or directory
fatal error C1083: 无法打开包括文件:“fenv.h”: No such file or directory
181 0
ibavformat.so.57: cannot open shared object file: No such file or directory
ibavformat.so.57: cannot open shared object file: No such file or directory
152 0
Cannot open include file: 'unistd.h': No such file or directory的解决办法
Cannot open include file: 'unistd.h': No such file or directory的解决办法
376 0
|
并行计算
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
152 0