|
|
Home » Developing U++ » External resources » MingW/GCC 4.1
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: MingW/GCC 4.1 [message #6735 is a reply to message #6325] |
Sat, 25 November 2006 13:49   |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
I've stopped to further investigate gcc4.
The problems to be solved are to big (for me). Having available under Windows MSC8 and MinGW342 makes it appear disproportionate to strive to get gcc4 to work.
Even following Scott Meyers' article "Building gcc 4 for Windows 2000" (http://www.aristeia.com/Misc/gcc4ForWindows_frames.html) confronted me with a lot of problems:
1.
Scott Meyers' suggestion to set the path is wrong (refer to Matthias' message #6703). But for some unknown reason even Matthias' correction didn't work for me. So I had to stick to Marcelo Slomp's original suggestion to set the path under Windows. This seems to work. But it might even be possible that the problems as detailed below were caused by that approach.
2.
"tar jxf ..." didn't work for me. I could get round this problem by first using "bzip2 -d ..." and afterwards "tar xf ..." but nevertheless that seems to indicate a lurking problem.
3.
Although I finally managed to build gcc4, this process produced a lot of minor (?) error messages and warnings. I'm lacking ages of gcc and Unix experience as well as the time and the patience to handle all that. But it would have to be done because ...
4.
... the link process (of "TheIDE") fails. Obviously the linker is missing "crtbegin.o" and "crtend.o". Although the respective .asm files are in the gcc4 distribution the .o files don't show up after building gcc4. Copying them from older releases doesn't work.
If a Unix / gcc / minGW nerd would be willing to help, I'd give it another try - which probably would turn into quite a tedious chore.
Werner
[Updated on: Sat, 25 November 2006 13:51] Report message to a moderator
|
|
|
|
|
|
|
|
Re: MingW/GCC 4.1 [message #7223 is a reply to message #7185] |
Mon, 18 December 2006 22:44   |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
Balage wrote on Mon, 18 December 2006 00:13 | Why don't you just get it from here?
http://gcc.winports.org/
I compile all my apps with it. Optimizes very efficiently, especially if you turn on -march=athlon-xp or -march=pentium4 (I've tried it with some image processing code I wrote, way much better than 3.4).
You still need binutils, w32api, etc. from mingw site though.
And also, this version of GCC4 cannot find it's own includes (if installed somewhere else, than C:\MinGW), so you have to modify the INCLUDES in TheIDE (or whatever you use) to include these:
<GCC4>/include
<GCC4>/include/c++/4.1.1
<GCC4>/include/c++/4.1.1/mingw32
--
Greets,
B.
|
Works, but somewhat slow compared to MSC8:
Building "ide.exe" on an outdated Pentium 4, 2.66 GHz, with 1 GB RAM:
GCC 4.1.1 optimal: 16:52:39 min
MSC8 optimal: 9:39:37 min
Thanks again for the hint, Balage!
Werner
|
|
|
Goto Forum:
Current Time: Mon Apr 28 16:48:30 CEST 2025
Total time taken to generate the page: 0.01267 seconds
|
|
|