News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks not compiling... period.

Started by efray, May 27, 2008, 06:34:29 AM

Previous topic - Next topic

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.

#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");
}


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 AMI've installed version 8.02 (Not mingw) (..)

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

You've answered yourself :)

Regards.
Those who were seen dancing were thought to be insane by those who could not hear the music

frostwyrm333

Hi, I have the same problem. i uninstalled it and installed the version with mingw. But i cant compile it too. I have noticed that code blocks keeps user data after uninstalling. Maybe its problem with this or i really dont know. (i use windows)
thanks for help.

Jenna

I quote my own post:

Quote from: jens on May 27, 2008, 07:09:14 AM
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" ?

it would be very nice if you would answer the question(s).

By the way you can remove the C::B configuration by deleting (or renaming) "c:\Documents and Settings/<your name>/application data/codeblocks/default.conf".