Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: stahta01 on May 19, 2007, 06:08:09 am

Title: Vista Patches for 3.4.5 minGW Files.
Post by: stahta01 on May 19, 2007, 06:08:09 am
See thread at http://article.gmane.org/gmane.comp.gnu.mingw.user/22674

Patches posted by Danny Smith http://www.mingw.org/MinGWiki/index.php/DannySmith
Patches collected by Brian Dessent

Quote
If it helps anyone else, I took the three patched drivers that Danny
posted (gcc, g++, collect2) and copied them to their various aliases
(e.g. c++, mingw-g++, etc) and put them in the appropriate directory
structure, and made it a tarball:

http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz

$ tar ztvf gcc-vista-3.4.5-20060117-1.tar.gz
-rwxr-xr-x brian/None    86016 2007-05-18 18:41 bin/c++.exe
-rwxr-xr-x brian/None    86016 2007-05-18 18:41 bin/g++.exe
-rwxr-xr-x brian/None    83456 2007-05-18 18:40 bin/gcc.exe
-rwxr-xr-x brian/None    86016 2007-05-18 18:41 bin/mingw32-c++.exe
-rwxr-xr-x brian/None    86016 2007-05-18 18:41 bin/mingw32-g++.exe
-rwxr-xr-x brian/None    83456 2007-05-18 18:40 bin/mingw32-gcc-3.4.5
-rwxr-xr-x brian/None    83456 2007-05-18 18:40 bin/mingw32-gcc.exe
-rwx------ brian/None    85504 2007-05-18 18:41
libexec/gcc/mingw32/3.4.5/collect2.exe

If you unpack this in your MinGW root folder (e.g. /mingw) just like all
the other gcc-foo tarballs it should install the files in all the right
places.  I tested this on a Vista copy running VMware and it worked fine
for compiling and linking C and C++.

Brian

Note, I don't have Vista, so no idea how well they work.

Tim S
Title: Re: Vista Patched 3.4.5 minGW Files.
Post by: killerbot on May 19, 2007, 09:18:19 am
will try this out this week, have a Vista test  box at work (bweueurk Vista) ;-)
Title: Re: Vista Patched 3.4.5 minGW Files.
Post by: bradp on February 10, 2008, 04:18:26 am
Awesome, Awesome, Awesome!!!  I have been messing around with this issue for half the day.  But it is fixed now.  This tarball works great to fix the issues I was having with MinGW and Codeblocks under Vista.  My problem was I kept getting the compile error:   "compiling cannot exec `cc1plus': No such file or directory".  Very frustrating issue with MingGW under Vista.  Just unpack all the files in this tarball to the directories listed and you will be compiling error free in no time.  Thanks for this post.  Brad    :lol:

 
Title: Re: Vista Patched 3.4.5 minGW Files.
Post by: codeur on February 10, 2008, 10:25:39 am
Alternatively MinGW with GCC 4.2.1 (Technology preview) works straight out of the box on Vista, if you are game to use it. I have not had issues with 4.2.1 (not driven by C::B) except that you have to generate debug with -gstabs, NOT! just -g (on sjlj release) for it to work OK with the latest GDB.

A quick trick to get the latest MinGW technology preview at one go (including 4.2.1 sjlj and all current tools), is to grab and install the Quincy 2005 IDE from http://quincy.codecutter.org (just released. It comes with an easy Windows installer), then copy the MinGW directory and uninstall Quincy. You'll save hours of work getting a proper, Vista-working MinGW. I know, I built that Quincy release and it has been fairly well tested (not just by me) on Vista.
Title: Re: Vista Patched 3.4.5 minGW Files.
Post by: raananb on February 10, 2008, 10:52:35 am
Thanks a lot for the information.

The Sourceforge listing for MinGW (dated 2008-02-07) is misleading - it says "MinGW: Updated: gcc-3.4.5 with Vista fix", but the vista fix is just the tar.gz file added which still has to be processed.
Title: Re: Vista Patched 3.4.5 minGW Files.
Post by: MortenMacFly on February 10, 2008, 01:49:33 pm
"MinGW: Updated: gcc-3.4.5 with Vista fix"
I didn't know about that! Great news!  :)

but the vista fix is just the tar.gz file added which still has to be processed.
I don't get what you mean by that? You just need to extract this archive and you are done. The sources are in the other ({somewhat}-src.tar.gz) file. There is no need to compile anything anymore nor to patch any path settings nor to install another binary. It's just those updated archives and you are done. Finally! :-)

With regards, Morten.