• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Code::Blocks says Invalid Compiler

AtaruMoroboshi18

Senior member
For some reason I'm having problems using Code::Blocks. Whenever I try to run any code whatsoever, it just gives me an "Invalid Compiler" error. This is all I'm trying to run right now:
*********
#include <iostream>

using namespace std;

int main()
{
cout << "Hello world!" << endl;
return 0;
}
**********

I have Win7 just in case. Don't know what's wrong. Im also using the latest nightly builds.

Edit: Oh yeah, Im using the default GNU GCC Compiler.
 
Last edited:
The Code::Blocks website mentions the compiler packaged with Code::Blocks won't work with Vista but suggest trying the newest version of MinGW. Not sure if this applies to your issue, however.
 
The Code::Blocks website mentions the compiler packaged with Code::Blocks won't work with Vista but suggest trying the newest version of MinGW. Not sure if this applies to your issue, however.

Yeah, I got the latest MinGW...gives exact same issue 🙁 You wouldn't happen to know of another C++ IDE then in the meantime?
 
There was a recent thread about that and IIRC the general consensus was Visual Studio EE or Netbeans or Eclipse with the C/C++ plugins. Bloodshed Dev-C++ was not recommended due to the current version being so old. I have used Visual Studio for small programs and it worked just fine for me. I have installed the C/C++ plugin into my Netbeans but have not yet gotten the chance to play with it.
 
The Code::Blocks website mentions the compiler packaged with Code::Blocks won't work with Vista but suggest trying the newest version of MinGW. Not sure if this applies to your issue, however.

He said he is using 7 though, and CodeBlocks works fine for me on 7.
 
Did you download the "Codeblocks with Mingw" download. if not, it won't contain the correct version of mingw. If you downloaded mingw separately, you have to point Code::blocks to the correct location of mingw and all the mingw packages, or else it won't work.
 
Back
Top