User forums > General (but related to Code::Blocks)
GCC-4.4.0-MinGW Binary
Biplab:
Hi All,
GCC-4.4.0 has been released recently. I have managed to compile it as a MinGW build. I want to share that with others. The package can be downloaded from the following links. Please download both the files and extract them to C:\MinGW folder. Then extract Win32API, MinGW Runtime, pthreads-win (If you want to use OpenMP) package to the same folder. Now you'll be able to use gcc-4.4 on Windows.
--- Quote ---http://files.filefront.com/binutils+2191+bintarbz2/;13651013;/fileinfo.html
http://files.filefront.com/MinGW+gcc+440+bkm+1tarbz2/;13650648;/fileinfo.html
--- End quote ---
Package Details:
1) Cross-compiled binary from vanilla GCC source.
2) Only one patch was applied to fix GCC build errors. No other patch has been applied to GCC source.
3) Binutils has also been cross-compiled from vanilla BinUtils (Release 2.19.1) package
4) I've put my Blog url and my initial in the compiled binary to differentiate it from other builds.
5) gcc, g++ and gfortran binary are available. Other language compilers are not included. They are mixed together as I don't know how to create individual packages.
Important Note:
1) This is completely unsupported binary and Use it at your own risk.
2) I did very few tests by compiling few projects.
3) Notably Code::Blocks builds without any issues (but with some warning messages).
Patch:
Following patch was applied to complete the build. But it's side-effects are not explored (hope there isn't any).
--- Code: ------ C:/gcc-4.4.0/libstdc++-v3/include/precompiled/stdtr1c++-old.h Fri Apr 10 07:23:08 2009
+++ C:/gcc-4.4.0/libstdc++-v3/include/precompiled/stdtr1c++.h Sat Apr 25 00:03:58 2009
@@ -30,7 +30,7 @@
#include <tr1/array>
#include <tr1/cctype>
-#include <tr1/cfenv>
+//#include <tr1/cfenv>
#include <tr1/cfloat>
#include <tr1/cinttypes>
#include <tr1/climits>
--- End code ---
Have Fun! :)
Regards,
Biplab
ollydbg:
Great Job!
Thanks for sharing.
I found that there are several types of *unofficial mingw package"
http://www.equation.com/servlet/equation.cmd?call=fortran
and
http://www.tdragon.net/recentgcc/
I'm not sure what's the difference between them.
:D
drac:
I've unpacked both MinGW-gcc-4.4.0-bkm-1.tar.bz2 and binutils-2.19.1-bin.tar.bz2 files into c:\mingw, then unpacked w32api-3.13-mingw32-dev.tar.gz and mingwrt-3.15.2-mingw32-dll.tar.gz and I've tried compiling a hello world program:
--- Code: ---#include <iostream>
int main()
{
std::cout << "Goodbye cruel adventure world!" << std::endl;
}
--- End code ---
I have got lots of errors complaining about missing headers, after copying this file set from an working 4.3.2 mingw distribution:
--- Code: ---c:\MinGW\include\wchar.h
c:\MinGW\include\_mingw.h
c:\MinGW\include\wctype.h
c:\MinGW\include\sys\types.h
c:\MinGW\include\stdint.h
c:\MinGW\include\locale.h
c:\MinGW\include\ctype.h
c:\MinGW\include\errno.h
c:\MinGW\include\time.h
c:\MinGW\include\assert.h
--- End code ---
I get this error:
--- Code: ---$ g++ hello.cpp -o hello
collect2: CreateProcess: No such file or directory
--- End code ---
.
Somehow I'm doing something wrong.
Biplab:
--- Quote from: drac on April 27, 2009, 07:10:57 pm ---I have got lots of errors complaining about missing headers, after copying this file set from an working 4.3.2 mingw distribution:
--- Code: ---c:\MinGW\include\wchar.h
c:\MinGW\include\_mingw.h
c:\MinGW\include\wctype.h
c:\MinGW\include\sys\types.h
c:\MinGW\include\stdint.h
c:\MinGW\include\locale.h
c:\MinGW\include\ctype.h
c:\MinGW\include\errno.h
c:\MinGW\include\time.h
c:\MinGW\include\assert.h
--- End code ---
I get this error:
--- Code: ---$ g++ hello.cpp -o hello
collect2: CreateProcess: No such file or directory
--- End code ---
.
Somehow I'm doing something wrong.
--- End quote ---
Extract mingwrt-3.15.2-mingw32-dev.tar.gz file to C:\MinGW directory. Get it from the following link-
--- Quote ---http://sourceforge.net/project/downloading.php?group_id=2435&filename=mingwrt-3.15.2-mingw32-dev.tar.gz&a=57338028
--- End quote ---
This contains mingw runtime headers and libraries.
drac:
--- Quote from: Biplab on April 28, 2009, 08:30:21 am ---Extract mingwrt-3.15.2-mingw32-dev.tar.gz file to C:\MinGW directory. Get it from the following link-
--- Quote ---http://sourceforge.net/project/downloading.php?group_id=2435&filename=mingwrt-3.15.2-mingw32-dev.tar.gz&a=57338028
--- End quote ---
This contains mingw runtime headers and libraries.
--- End quote ---
Right, silly me I tought that mingwrt-3.15.2-mingw32-dev.tar.gz contained only the source code to mingwm10.dll.
This fixes the header problem, but not the:
--- Code: ---$ g++ hello.cpp -o hello
collect2: CreateProcess: No such file or directory
--- End code ---
I have set C:\MinGW-4.4.0\bin\ the first (I did one test only with this directory) in path environment variable and
then I have ran Process Monitor to see what happens.
ntvdm.exe is ran by g++.exe in the end and there it stops, if I kill ntvdm.exe then I see the collect2 error message.
I'm using cmd.exe without msys.
I guess the gcc 4.4.0 needs a patch in order to run correctly on Windows.
Navigation
[0] Message Index
[#] Next page
Go to full version