Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
I am using mingw64 (on windows 11) to run a makefile but get the following error:
cc -std=c11 -Wall -Wextra -pedantic -Wno-overlength-strings -Wno-unknown-warning-option -O3 prog.c -o prog
process_begin: CreateProcess(NULL, true, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [Makefile:431: all] Error 2
A similar questions was asked here: Makefile error make (e=2): The system cannot find the file specified
I have cleaned up my path as suggested (and windows restart), however to no avail.
I'm stuck.
–
This answer on the linked question worked for me: https://stackoverflow.com/a/46816749/121921
If you have git
installed then you likely have a <git>\usr\bin
folder which contains a full set of utilities you are likely to need and which can be invoked from CMD, PowerShell or sh
(which make is most likely using).
mingw64
will have its own \usr\bin
directory I expect.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.