gcc:CreateProcess:没有这样的文件或目录

时间:2015-11-02 13:46:36

标签: gcc

我尝试使用网络上发布的其他解决方案来解决同样的错误,但它对我没有用。

我在我的电脑上测试MinGW编译器的安装,运行代码时出现以下错误:

gcc -v hello.c

C:\Python34\swigibpy-master>gcc -v hello.c
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --
enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-we
rror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-mtune=i386' '-march=i386'
 c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/cc1.exe -quiet -v -iprefix c:\mingw\bin\../lib/gcc/mingw32/4.5.2/ hello.c -quiet -dumpbas
e hello.c -mtune=i386 -march=i386 -auxbase hello -version -o C:\Users\E039256\AppData\Local\Temp\cc87BHBZ.s
GNU C (GCC) version 4.5.2 (mingw32)
        compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../mingw32/include"
ignoring duplicate directory "/mingw/lib/gcc/mingw32/4.5.2/../../../../include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/include-fixed"
ignoring nonexistent directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/../../../../mingw32/include"
ignoring duplicate directory "/mingw/include"#include "..." search starts here:#include <...> search starts here: C:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include-fixed
End of search list.
GNU C (GCC) version 4.5.2 (mingw32)
        compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 48c0bd49e9a9404f24c600b71b435d06
COLLECT_GCC_OPTIONS='-v' '-mtune=i386' '-march=i386'
 as -o C:\Users\E039256\AppData\Local\Temp\ccwHyCqZ.o C:\Users\E039256\AppData\Local\Temp\cc87BHBZ.s
gcc: CreateProcess: No such file or directory

1 个答案:

答案 0 :(得分:0)

存在mingw32-gccmingw32-g++等二进制文件作为交叉开发的辅助手段。它们是在典型的gcc构建中创建的。因此,它们是作为GCC的维护者分发的。 gcc.exe表示二进制文件为目标生成等于构建的二进制文件,而mingw32-gcc二进制文件生成要在mingw32目标上执行的二进制文件。

您可以在http://www.mingw.org/wiki/FAQ

看到