Hi, I am developing with mingw and codeblocks on winXP. I use qmake which uses a spec based on mingw and DOS, so Makefile contains things like:
DEL_FILE = del
DEL_DIR = rmdir
MOVE = move
This worked great for qt build from cmd.exe. However, when I build within codeblocks, I see messages like
process_begin: CreateProcess((null), del parser_yacc.cpp parser_yacc.h, ...) failed.
process_begin: CreateProcess((null), move y.tab.h parser_yacc.h, ...) failed.
It seems I have to use the unix equivalents mv or rm to make it work.
Because C::B doesn't run in a command prompt, it can't run these shell builtin commands.
The solution is (besides using the unix equivalent commands) to change it like this:
DEL_FILE = cmd /c del
DEL_DIR = cmd /c rmdir
MOVE = cmd /c move
Or change the make commands in your project build options and prepend "cmd /c " for each one of them.