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

后端 未结 8 2117
轻奢々
轻奢々 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:39

    I installed MinGW of the ofcial website.
    I select "Basic Setup"( I only wanted get c compiler), and I marked all package, after this installation I added the path, in my case.

    C:\MinGW\bin.

    I created a c file in

    C:\Users\christian\Documents\C projects\

    with the name untitled1.c

    Wen I tried to use the command

    gcc untitled.c

    the command promt showed me that message.

    gcc: CreateProcess: No such file or directory


    How did I solve this problem?
    I removed all package,

    -Open "MinGW Installation Manager"
    -Select "Basic Setup".
    -Mark for removal all packages.
    -Select "Installation" tap.
    -Click in Apply changes.
    -After you can install those again.


    Operating system

    • Edition: Windows 10 Pro
    • Version: 1607
    • Os build: 14393.187

提交回复
热议问题