添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
高大的脸盆  ·  Build fails with ...·  3 月前    · 
气势凌人的核桃  ·  [SOLVED] Undefined ...·  3 月前    · 
八块腹肌的单杠  ·  Android 16KB page ...·  2 月前    · 
玉树临风的香菜  ·  Create React App - ...·  2 月前    · 
捣蛋的凉茶  ·  Pipeline: Basic Steps·  2 月前    · 
淡定的橙子  ·  C++ ...·  3 年前    · 
咆哮的木瓜  ·  python - Why am I ...·  3 年前    · 
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

I am trying to build a C project on Win10 and i am using MinGW32-make. Prior to build the build directories should be created, and this is where build breaks with following output:

mkdir build\f2803x
process_begin: CreateProcess(NULL, mkdir build\f2803x, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:64: recipe for target 'build\f2803x' failed
mingw32-make: *** [build\f2803x] Error 2

I've tried running the mkdir command from the command line and it runs successfuly, however when i try running mingw32-make it fails. I've been searcing the web and one answer to the similar question pointed out that PATH in for the Mingw32-make and PATH for the windows may not be the same, so i added echo path to the makefile and compared the output to echo %PATH% from the cmd. It appears that they are not the same. Mingw32-make has /mingw64/bin:/usr/bin:/c/Users/user123/bin that is not stated anywhere in any of the windows environment variables. I've also searched the registry as a last resort, however this is not in registry either. Where can these additional paths come from, and is it even the issue of the path?

You need to run cmd.exe /c mkdir build\f2803x. Mkdir is a built-in command in cmd.exe, not a program you can run from CreateProcess(). – jwdonahue Feb 27, 2020 at 21:37 OK, I get it now. the CreateProcess(NULL, command, ...) is because the program doesn't exist. In the case of cmd.exe there is no mkdir command because it's built in. Thanks for the clarification. – harry courtice Mar 28, 2020 at 12:50

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.