Yet Another MinGW “gcc: error: CreateProcess: No such file or directory”

后端 未结 8 2113
轻奢々
轻奢々 2020-11-30 09:03

I have installed MinGW C compiler in Windows 8 (64 bit) through the GUI installer. But when I try to compile a C program, gcc says: gcc: CreateProcess: No such file

8条回答
  •  情话喂你
    2020-11-30 09:33

    I have the same problem.

    I have a startgcc.bat in my folder.
    It's OK for me just after remove double quotation marks in my PATH assignment. my bat script:

    @title gcc-mingw
    @rem @cd /d %~dp0
    
    @rem below line will fail and got error: gcc.exe: error: createprocess: no such file or directory
    @rem @set path="C:\mingw64\bin";%path%
    
    @rem below lines works ok without double quotation marks
    @set path=C:\mingw64\bin;%path%
    @set path=C:\mingw64\opt\bin\;%path%
    @cmd
    

提交回复
热议问题