make: g++: error: CreateProcess: No such file or directory
make: g++: error: CreateProcess: No such file or directory
我看到这个问题已经发布了很多次,但是 none 的解决方案对我有用,我的问题有点不同。
问题:
当使用 makefile 和 mingw32-make 时,出现错误:
g++: error: CreateProcess: No such file or directory
但是,如果我 copy/paste makefile 尝试执行的 SAME 命令并将其粘贴到 SAME 命令提示符中,它就可以工作。只有当我尝试使用 makefile 构建时才会出现此问题。
这里有更多信息:
g++ ./src/main.cpp ./src/application.cpp -I C:\Code\infographie\Labs\inc -L C:\Code\infographie\Labs\lib -I C:\Code\infographie\Labs\inc -g -Dmain=SDL_main -L C:\Code\infographie\Labs\lib -lmingw32 -lSDL2main -lSDL2 -o bin/debug/labs.exe
g++: error: CreateProcess: No such file or directory
makefile:23: recipe for target 'all' failed
mingw32-make: *** [all] Error 1
正如我所说,如果我 copy/paste 第一行它会起作用。
我可以尝试什么?
更新:我已经安装了 cygwin,调整了 SDL 库并重新编译。现在,当我尝试使用 make 时出现此错误。如果我 copy/paste 命令,它会起作用。
g++ ./src/main.cpp ./src/application.cpp -I C:\Code\infographie\Labs\inc -L C:\Code\infographie\Labs\lib -I C:\Code\infographie\Labs\inc -g -Dmain=SDL_main -L C:\Code\infographie\Labs\lib -lcygwin -lSDL2main -lSDL2 - mwindows -o bin/debug/labs.exe
make: g++: Command not found
make: *** [makefile:23: all] Error 127
已修复,不要声明名为 PATH 的变量...
停止使用 MinGW。
MinGW 尚未更新since 2013。它已被 Cygwin 取代,并且
MSYS2。 MinGW 项目甚至不提供 64-bit compiler.
Cygwin大约3 minutes可以安装,我试试看
我看到这个问题已经发布了很多次,但是 none 的解决方案对我有用,我的问题有点不同。
问题:
当使用 makefile 和 mingw32-make 时,出现错误:
g++: error: CreateProcess: No such file or directory
但是,如果我 copy/paste makefile 尝试执行的 SAME 命令并将其粘贴到 SAME 命令提示符中,它就可以工作。只有当我尝试使用 makefile 构建时才会出现此问题。
这里有更多信息:
g++ ./src/main.cpp ./src/application.cpp -I C:\Code\infographie\Labs\inc -L C:\Code\infographie\Labs\lib -I C:\Code\infographie\Labs\inc -g -Dmain=SDL_main -L C:\Code\infographie\Labs\lib -lmingw32 -lSDL2main -lSDL2 -o bin/debug/labs.exe
g++: error: CreateProcess: No such file or directory
makefile:23: recipe for target 'all' failed
mingw32-make: *** [all] Error 1
正如我所说,如果我 copy/paste 第一行它会起作用。
我可以尝试什么?
更新:我已经安装了 cygwin,调整了 SDL 库并重新编译。现在,当我尝试使用 make 时出现此错误。如果我 copy/paste 命令,它会起作用。
g++ ./src/main.cpp ./src/application.cpp -I C:\Code\infographie\Labs\inc -L C:\Code\infographie\Labs\lib -I C:\Code\infographie\Labs\inc -g -Dmain=SDL_main -L C:\Code\infographie\Labs\lib -lcygwin -lSDL2main -lSDL2 - mwindows -o bin/debug/labs.exe
make: g++: Command not found
make: *** [makefile:23: all] Error 127
已修复,不要声明名为 PATH 的变量...
停止使用 MinGW。
MinGW 尚未更新since 2013。它已被 Cygwin 取代,并且 MSYS2。 MinGW 项目甚至不提供 64-bit compiler.
Cygwin大约3 minutes可以安装,我试试看