I'v add path to windows path variable:
path="C:\Program Files (x86)\CodeBlocks\MinGW";"C:\Program Files (x86)\CodeBlocks\MinGW\bin";%path%
then in my work directory, star a command window, run:
mingw32-gcc -o app main.c
mingw32-gcc: error: CreateProcess: No such file or directory
If I compile using the code::blocks IDE, the project is compiled ok.
Please read the rules and FAQs
Rules http://forums.next.codeblocks.org/index.php/topic,9996.0.html (http://forums.next.codeblocks.org/index.php/topic,9996.0.html)
FAQ http://wiki.codeblocks.org/index.php?title=FAQ (http://wiki.codeblocks.org/index.php?title=FAQ)
To see what CB Does http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
Tim S.