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

GCC 4.1.1 for MinGW

Started by Ceniza, May 28, 2006, 06:47:04 AM

Previous topic - Next topic

JacK-DuRdEn_

Quote from: jarro_2783 on June 02, 2006, 03:36:39 AM
so it's not that there has been a change in the way c++ works, it's that such a huge upgrade of something like a compiler is bound to cause bugs?

exactly. as far as i know there aren't changes in the way c++ (or any language for that matter) for looong years. any project of great magnitude like a compiler is bound to have regressions and compatibility problems with the way thing were done before. that's why they release beta versions and make release candidates etc.

Balazs

Just to add a little info:
GCC 4 optimizes MUCH better, than any 3.x version. I have written an image processing plugin for avisynth some time ago, and compiled with gcc 4 with -march=pentium3 -O3, it as about 2 times faster, than compiled with the EXACT same flags with gcc 3.4.5
I have also read about this, that gcc 4 uses much more modern and robust optimization techniques, and my results only confirm this.

Another thing:
Why is it needed to install gcc 4 to C:\MinGW? I tried in other directory, where I prefer, but there it cannot find it's own includes and libs. How come? Is C:\MinGW hard coded into g++.exe? (I hope not)

--
Greets,
B.

sethjackson

Quote from: Balazs on June 05, 2006, 12:55:40 AM
Another thing:
Why is it needed to install gcc 4 to C:\MinGW? I tried in other directory, where I prefer, but there it cannot find it's own includes and libs. How come? Is C:\MinGW hard coded into g++.exe? (I hope not)

--
Greets,
B.

No it is not hard coded. You just need to tell C::B where to look for GCC 4. :)

Ceniza

It seems the path for includes and libs gets hardcoded somewhere in the compilation process. I don't know the reason it happens but it does.

Checking g++.exe from GCC 4.1.1, there's a C:/MinGW hardcoded into it, and checking g++.exe from GCC 3.4.5 there's no path at all there, but just changing that won't fix it.

Michael

Quote from: sethjackson on June 05, 2006, 01:15:39 AM
Quote from: Balazs on June 05, 2006, 12:55:40 AM
Another thing:
Why is it needed to install gcc 4 to C:\MinGW? I tried in other directory, where I prefer, but there it cannot find it's own includes and libs. How come? Is C:\MinGW hard coded into g++.exe? (I hope not)

--
Greets,
B.

No it is not hard coded. You just need to tell C::B where to look for GCC 4. :)

Hello,

Ceniza is right.

The first time I have tried GCC 4.1.0 in a MinGW not installed in C:\, I got several troubles to make it works with C::B. Since I installed MinGW in C:\ all works like a charm (no need for special tricks).

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

sethjackson

Quote from: Michael on June 05, 2006, 06:09:03 PM
Quote from: sethjackson on June 05, 2006, 01:15:39 AM
Quote from: Balazs on June 05, 2006, 12:55:40 AM
Another thing:
Why is it needed to install gcc 4 to C:\MinGW? I tried in other directory, where I prefer, but there it cannot find it's own includes and libs. How come? Is C:\MinGW hard coded into g++.exe? (I hope not)

--
Greets,
B.

No it is not hard coded. You just need to tell C::B where to look for GCC 4. :)

Hello,

Ceniza is right.

The first time I have tried GCC 4.1.0 in a MinGW not installed in C:\, I got several troubles to make it works with C::B. Since I installed MinGW in C:\ all works like a charm (no need for special tricks).

Best wishes,
Michael


Well I stand corrected. :)

jmccay

Is there any way to change the directory it is installed in?  I use a couple of versions.

jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

Ceniza

That's the biggest mystery right now.

What I did was to create many bin directories, like bin-4.0.3 and bin-4.1.1, and rename them to just bin when I want to use that version.

jmccay

#23
Currently, on my winXP system, I am using System variables.

MINGW = %DEVHOME%\compilers\mingw%MINGWVER%

DEVHOME is the base development directories

MINGWVER is the mingw version like:
MINGWVER=3.4.5

under the path variable:

path =%MINGW%\bin

You have to exit cmd prompts & CB to get them to see the change, but it might be easier for some parts.  The nice thing about this is I only have to change MINGWVER & exit out of cmd prompts & CB.  I also use the system variables in the directory lists.

   Him, has anyone mentioned this to the gcc people?  It is definately an annoying bug.  I hope it's fixed before 4.2 come out because that version should be able to compile wxWidgets without all the annoying warnings.  A patch fixing was applied to that version.

jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

Poobah

Ceniza, hasn't this been available since May? (Thanks, by the way.)

Ceniza

Hmmm... yes, it's been available since May, 4 days after the official release, but I don't get the reason for that question :?

Now, about the path thingy, I haven't reported it, but there must be a way around since the MinGW people get it to work correctly, and the solution could be somewhere in their site :)

Poobah

Oh, never mind. I thought this was a new thread, and that you were only just announcing GCC 4.1.1 for Windows now.