This is probably a really noob question, but the fact of the matter is that my Code::blocks wouldn't show me errors when it compiles - it only shows a red bar next to the offending line as shown in screenshot. Also, when my code does run and has output, CB opens a new window instead of showing the output in a pane in the bottom of the editor window like some other IDEs. How do I enable either/both, since they're probably the same feature? Thanks!
Run the downloaded installer. Accept the default options. Verify the Compiler's and Debugger's Path: (For CodeBlocks 13.12 For Windows) Goto "Settings" menu ⇒ "Compiler..." ⇒ In "Selected Compiler", choose "GNU GCC Compiler" ⇒ Select tab "Toolchain Executables" ⇒ Check the "Compiler's Installation Directory".
Click on build->run or hit Ctrl+F10 and a new CMD Window should pop up, showing you your "Hello world!". Show activity on this post.
It is generally due to non availability of compiler or Codeblocks is not properly configured to use the compiler. Best way is to uninstall the current codeblocks and download the version with compiler included. It will be around 80–100MB in size. Install it and most probably your problem will be solved.
Press F2 to enable Logs panel. Select "Build log" in it.
Or go to menu: View -> Logs
Have a good developing!
go to view -> perspective -> and enable code::Blocks default, you can see your projects left side and down the build logs and messages etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With