Code::Blocks Forums

User forums => Help => Topic started by: Nonno Umby on October 26, 2017, 04:35:27 pm

Title: Help! Code::Blocks 16.01 fails at building
Post by: Nonno Umby on October 26, 2017, 04:35:27 pm
Hi everyone!

I recently installed Code::Blocks 16.01, but every time I try to build a project it doesn't work, not even with the default "Hello World" program. When I click on the Build icon, this is what appears in the Build Log:

-------------- Build: Debug in pp (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe  -o bin\Debug\pp.exe obj\Debug\main.o   
Execution of 'mingw32-g++.exe  -o bin\Debug\pp.exe obj\Debug\main.o' in 'C:\Users\user\Desktop\pp' failed.

If I click on the Run icon the message "It seems that this project has not been built yet. Do you want to build it now?" appears. When I click on Yes the same message appears again, and it keeps doing that until I click on the No.


I've tried everything I knew but couldn't resolve this issue. Any help is deeply appreciated.
Thanks in advance.
Title: Re: Help! Code::Blocks 16.01 fails at building
Post by: BlueHazzard on October 26, 2017, 06:30:20 pm
install a compiler or install the codeblocks version bundled with a compiler
Title: Re: Help! Code::Blocks 16.01 fails at building
Post by: stahta01 on October 26, 2017, 08:05:19 pm
install a compiler or install the codeblocks version bundled with a compiler

Not sure the cause is missing compiler from the first post. Could be that or it might be something else.

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
Title: Re: Help! Code::Blocks 16.01 fails at building
Post by: Nonno Umby on November 06, 2017, 07:23:56 pm
Hi everyone. I was helped by my professor. I don't know the exact details about the problem I had but it had to do with the way I installed the compiler. Now everything works fine, so thanks a lot for your help!
Title: Re: Help! Code::Blocks 16.01 fails at building
Post by: RickRobinson on May 28, 2018, 11:29:39 pm
I  was having this exact same problem with Code::Blocks 17.12 ... not even 'Hello World' would build.

An old thread had a solution that worked - changing the Toolchain link setting from g++ to gcc. (See thread <http://forums.codeblocks.org/index.php/topic,18231.0.html>). When I made the change, suddenly Code::Blocks started to work! :D