Question

I am trying to learn how to program in the c++ language and I have downloaded Code::Blocks as advice from an online tutorial, when creating a new project on Code::Blocks and selecting a console application it opens with a small program that should say "hello world" when I try to build and run this program it says "this project is not built yet, would you like to build it?" I select yes and absolutely nothing happens. On the build log it says 0 errors and when I click build and run again it says its not built! I have no clue what to do or what is wrong, can anybody help?

Was it helpful?

Solution

You don't have a compiler or you haven't configured CodeBlocks with a compiler.To fix it:
Download and Install a C/C++ compiler for your OS and configure CodeBlocks to use it. Or if you are using Windows you can also download this CodeBlocks setup which already includes MinGW compiler.

OTHER TIPS

I found the exact same issues. You just need to create a project/C++ source file instead of the empty file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top