Code::Blocks Forums

User forums => Help => Topic started by: Mentol on August 22, 2016, 11:51:56 pm

Title: No console output : Default "Hello world!"
Post by: Mentol on August 22, 2016, 11:51:56 pm
Hey guys,

I installed Code::Blocks from the website today, the codeblocks-16.01mingw-setup.exe to be precise - which includes the compiler and debugger already.

- Tried to create a project and run the default Hello World, however the GNU compiler wasn't recognized.
- Fixed that with going to settings, compiler settings, toolchain executables and Auto-detect.
- Restarted the IDE, ran Hello World again.
- Now it is giving me an output, however the actual text isn't being shown inside the console.
- Tried googling for a fix, but I couldn't find anything that might be a solution.

Attempted to record the most important points I could think of during the vid down below :

https://drive.google.com/open?id=0B2PfjyPSj-F5TnlsSVF2RmVNWkE

Not sure why the mouse is obscured in such a way, or the reason for the screen being black for that long at the end.. figured it would be still good enough for what it's meant to be.
It's rather strange that it tells me that nothing has been built, when I clearly clicked on build before. It might have to do something with it.


Would be very thankful for any help, thank you - for your time.
Title: Re: No console output : Default "Hello world!"
Post by: MortenMacFly on August 28, 2016, 06:56:52 am
You have to setup a debugger (menu "Settings" -> "Debugger") and assign it to become active for the target (menu "Debug" -> Acive debuggers -> [your debugger]).
Title: Re: No console output : Default "Hello world!"
Post by: BlueHazzard on August 28, 2016, 02:14:07 pm
regarding the compiler, execution problem I think you have problems with write permission of your project folder, make sure you have write permissions on your folder. Or a anti virus software blocks the writing of the compiler....
deactivate your anti virus software and try again...

if you have future problems: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

greetings