Search code examples
codelite

Codelite 17.0.0 occurs "process_begin: CreateProcess(NULL, makedir Debug, ...) failed."


I am just learning C++ via Codelite, which was updated on 01/11. After updating to the latest version, 17.0.0, I get the error

process_begin: CreateProcess(NULL, makedir Debug, ...) failed.

mingw32-make[1]: *** [AssignmentOperator.mk:90: Debug/.d] Error 2,

mingw32-make: *** [Makefile:5: All] Error 2

when I run a simple code.

#include <iostream> int main(){ std::cout<<"Hello"<<std::endl; return 0; }

and get nothing in the terminal window.

How can I fix this problem? Thanks a lot.

I guess the probrem occured since the updating of Codelite, but I have no idea how to fix it.


Solution

  • Looks like a an old relic that was not handled properly during upgrade.

    This can be fixed in 2 ways:

    1. Update the mkdir command as defined by your compiler setup:
    • Go to Settings -> build settings and select your compiler from the list
    • Select the Tools tab
    • Select the last entry at the bottom mkdir

    Replace the content with the mkdir that comes with CodeLite, for example, if you have installed CodeLite under C:\Program Files\CodeLite (the default path), set it to

    "C:/Program Files/CodeLite/mkdir.exe" -p
    

    Notice the double quotes around the command itself

    1. Change the makefile generator used
    • Right click on your project and open the project settings
    • In the General tab, under the Makefile Generator change the selection from Default -> CodeLite Makefile Generator