This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 4.0.2


your error is because gcc needs in the directory where you compile the header
files so first extract your w32api and runtime in that directory (step 05)

OK I got a lot of problems compile gcc 4.1.0 with mingw/msys
Finally its done
Because it took me a lot of time here the solution
http://prdownloads.sourceforge.net/mingw/
01. install MSYS-1.0.10.exe
02. install msysDTK-1.0.1.exe
03. download binutils-2.16.91-20060119-1.tar.gz
gcc-core-3.4.5-20060117-1.tar.gz gcc-g++-3.4.5-20060117-1.tar.gz
gcc-objc-3.4.5-20060117-1.tar.gz mingw-runtime-3.9.tar.gz w32api-3.6.tar.gz
04 extract the files from step 03 into the root of msys so bin is inside bin
etc
05 extract mingw-runtime-3.9.tar.gz w32api-3.6.tar.gz again but now in the
mingw directory of msys
06 download the gcc you want and extract it example gcc 4.1
07 go to the directory of the gcc and do ./configure --with-gcc
--with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
--enable-threads --disable-nls --enable-languages=c,c++,objc
--disable-win32-registry --disable-shared --enable-sjlj-exceptions
--enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
--enable-libstdcxx-debug
08 when done go into the makefile and change the path to ld.exe (search for
ld.exe) which is something like .../../../mingw..// to only the two
characters ld
09 do make
10 do make install
11 now you have in your mingw directory the correct gcc

Mert Sonsuz
--
View this message in context: http://www.nabble.com/gcc-4.0.2-t837679.html#a3438878
Sent from the gcc - Dev forum at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]