当我试图用vs代码运行一个简单的cpp程序时,我遇到了这个问题。:/software/wingw64/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/cstdlib:75:15: fatal error: stdlib.h: No such file or directory ^~~~~~~~~~
compil
我在目录中编译了我的c++程序但是stdlib.h存在于路径中。D:\Program Files\Microsoft Visual Studio 9.0\VC\include
在编译我的程序时,它在命令提示符下抛出以下错误。fatal error c1083:cannot open include file:"stdlib.h":No such file or director
但是,我马上收到一个关于没有找到stdlib.h的编译错误。我已经确认,至少在stdlib.h中/usr/include/和/usr/x86_64-w64-mingw32/sys-root/mingw/include/c++/中也找到了提供编译器错误的文件。为什么我仍然收到错误stdlib.h: No such file or directory
更新:我做了更多
我用的是Fedora 24,我第一次试着用跟Fedora一起来的gcc (gcc (1996) 6.2.1 20160916 (RedHat6.2.1-2))。我也尝试了GCC 6.2.0,编译在我的机器上。无论OpenCV版本和gcc版本的交互与否,结果都是一样的:
In file included from /usr/local/include/c++/6.2.0/bits/stl_algo.h:59:opencv/bui
我正在运行Linux Mint 20.1的全新安装,我试图为GPS跟踪器编译一个程序,但它无法编译: In file included from /usr/include/c++/9/bits/stl_algo.h当然,系统上也有stdlib.h: $ find /usr -name stdlib.h/us