I am new to CodeBlocks, and learning my way around.
I would like to be able to add a "Release" target to a project that was created using the Wizard with only a "Debug" target.
Here is what happens:
Console project created using the Wizard with "Debug" target only.
Built and run with no problem.
"Release" target added (Project/Properties/Build targets: "Add" clicked, new target given name "Release", Output filename changed to "bin\Release\TargetTest.exe", Objects output dir changed to "obj\Release\", main.cpp checked under "Build target files".
Under Project build options, "Produce debugging symbols" unchecked.
The new release project builds with no errors, and in fact an exe file is created in the bin\Release\ directory.
However, when I press F9 to run the program, nothing happens. No console, and no output.
Here is what CodeBlocks has to say:
Checking for existence: C:\Documents and Settings\john\My Documents\CB_Projects\TargetTest\bin\Release\TargetTest.exe
Executing: "C:\Documents and Settings\john\My Documents\CB_Projects\TargetTest\bin\Release\TargetTest.exe" (in C:\Documents and Settings\john\My Documents\CB_Projects\TargetTest\.)
Process terminated with status 0 (0 minutes, 0 seconds)
The "Debug" target displays a console and output as expected.
I am sure I am neglecting something that should be obvious, but I am stuck and would appreciate help.
Thank you.