![](/img/trans.png)
[英]Error: g++.exe: No such file or directory g++.exe: fatal error: no input files in Visual studio code?
[英]gcc cannot find -lgcc, g++.exe: error: CreateProcess: No such file or directory
我试图在Windows上使用MingGW,但是当我尝试编译c / c ++文件时,使用C(gcc)进行编译时会发生以下错误
> gcc c:\Users\Administrator\Desktop\C_C++\helloworld\hello.c - o c:\Users\Administrator\Desktop\C_C++\helloworld/hello
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lgcc
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lgcc
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh
collect2.exe: error: ld returned 1 exit status
使用C ++(g ++)进行编译时发生以下错误
> g++ c:\Users\Administrator\Desktop\C_C++\helloworldcpp\hello.cpp -o c:\Users\Administrator\Desktop\C_C++\helloworldcpp/hello
g++.exe: error: CreateProcess: No such file or directory
路径变量是C:\\ MinGW \\ bin 。 我已经在基本的安装程序包中下载了mingw-developer-toolkit,mingw32-base,mingw32-gcc-g ++和msys-base。 我也收到iostream的#include错误。 我已经尝试了Internet上几乎所有的方法,但是无法解决。
似乎未正确安装MinGW。
重新安装它可能会解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.