User forums > Help

Code::Blocks not compiling... period.

(1/2) > >>

efray:
I've installed version 8.02 (Not mingw) without any errors. The problem is, when I decide to build, the program does nothing. It just sits there as if I had not done anything.

This is my test code, because in previous installations, I've had this problem before.


--- Code: ---#include <iostream>
using namespace std;

int main(int argc, char *argv[]) {
cout << "You called program " << argv[0] << " with arguments " << endl;
for (int i = 1; i < argc; i++) {
cout << argv[i] << " ";
}
cout << endl;
system("pause");
}

--- End code ---

When pressing build, it changes to the Build Log tab, but nothing happens.

I would really like to fix this because Code::Blocks is a great program, and I do not want to change at the moment.
Help is greatly appreciated, thanks.

Jenna:
I guess you have a compiler installed, otherwise you sholud do this.

Are the compiler settings in "Settings -> Compiler and debugger... -> Global Compiler settings -> [the compiler you use] -> Toolchain executables" correct ?

What's the output of "Build Log" with "Settings -> Compiler and Debugger... -> Global Compiler settings -> [the compiler you use] -> Other settings" (the rightmost tab) -> Compiler logging" set to "Full command line" ?

efray:
Oddly enough, I couldn't find any installed compiler for the options available. Did the older version of Code::Blocks come with a default installation?

Jenna:
Code::Blocks is an IDE and works with many compilers that have to be installed seperately.
C::B 8.02 on windows ships with or without the Vista fixed version of MinGW's gcc compiler.
The easiest way for you, if you are on win, would be to download C::B with MinGW bundled and reinstall it.

Deschamps:

--- Quote from: efray on May 27, 2008, 06:34:29 am ---I've installed version 8.02 (Not mingw) (..)
--- End quote ---


--- Quote from: efray on May 28, 2008, 02:20:43 am ---Oddly enough, I couldn't find any installed compiler (..)
--- End quote ---

You've answered yourself :)

Regards.

Navigation

[0] Message Index

[#] Next page

Go to full version