News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

GNU GCC Compiler is compiling REALLY slow.

Started by Alos, October 02, 2005, 05:36:11 AM

Previous topic - Next topic

zieQ

The MinGW installer has some problems, I experienced some, it doesn't download all the files you need sometimes. Try downloading the zip files one by one instead.

You need packages:
- mingw utils
- mingw runtime
- windows api
- gcc-g++
- gcc-core
- make
- (binutils)

mandrav

I have the feeling you didn't decompress the files the right way. Your dir structure should be something like this:

C:
   MinGW
      bin
          make, gcc, etc
      include
      lib
      ....

Anyway, the most bulletproof way to fix your problems and actually start working :P, is to download and install Code::Blocks full setup, which contains a working MinGW installation...
Be patient!
This bug will be fixed soon...

Alos

Quote from: mandrav on October 05, 2005, 09:10:54 AM
I have the feeling you didn't decompress the files the right way. Your dir structure should be something like this:

C:
MinGW
bin
make, gcc, etc
include
lib
....

Anyway, the most bulletproof way to fix your problems and actually start working :P, is to download and install Code::Blocks full setup, which contains a working MinGW installation...

After decompressing the originally downloaded base files, i noticed they made a few more things that i am able to decompress, should i decompress those too?

And i already tried the full setup, thats what got me the crazy problems in the first place.

I've been wondering, does it matter at all what operating system im on? if it does, im on windows 2000.

thomas

Quote from: mandrav on October 05, 2005, 09:10:54 AM
I have the feeling you didn't decompress the files the right way.
Yup, so it seems.

Move the whole bunch of .tar.gz files into the folder where MinGW is to be installed (C:\mingw), and then select "Decompress here" or "Unpack here" on each of them.

Here is what my directory layout looks like (working):


"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

rickg22

Thomas, you Rock!  8) Please add that to the wiki! (regarding mingw installation)

thomas

Phew, posted in the wrong thread, luckily there is a "delete" button.  :D
So here goes:

Did that and added a few redirect pages, too, so it is easier to find with the search box.

Hmm... might go for a "Using GLFW with Code::Blocks" page next weekend.

But need to bring cb::svn into a usable state first, or Yiannis will eat me ;)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

rickg22

Quote from: thomas on October 05, 2005, 08:15:30 PM
But need to bring cb::svn into a usable state first, or Yiannis will eat me ;)

I'll bring the sauce, just in case :lol:

tiwag

Quote from: rickg22
I'll bring the sauce, just in case :lol:

BIG  :)

mandrav

Be patient!
This bug will be fixed soon...

Alos

Apparently iZarc isnt good at decompressing, downloaded winrar, re-decompressed, and now i have all the right files and now its not taking forever for things to compile. I'm still getting lots of errors though.

http://img84.imageshack.us/my.php?image=errors2ge.jpg

rickg22

Your linker isn't linking the C++ STL library. I think your linker directories are missing the MinGW path or something.

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Alos

Quote from: rickg22 on October 05, 2005, 11:06:29 PM
Your linker isn't linking the C++ STL library. I think your linker directories are missing the MinGW path or something.

How do I fix that?

sethjackson

I assume you installed C::B with MinGW. If you did this go to Compile->Compiler Options->GCC->Reset Defaults. Otherwise if MinGW is in somthing other than the default directory. Go to Compile->Compiler Options->GCC->Programs->Auto-detect

heromyth

I use PCH to improve the speed when building CB with GCC.
I have made some tests like building the minimal_sample of wxWidgets. Without PCH, the progress costs 8 seconds. With PCH, it costs 3 seconds.
It seems to be a little faster using PCH. :P