News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Vista Patches for 3.4.5 minGW Files.

Started by stahta01, May 19, 2007, 06:08:09 AM

Previous topic - Next topic

stahta01

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

killerbot

will try this out this week, have a Vista test  box at work (bweueurk Vista) ;-)

bradp

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:

 

codeur

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.

raananb

#4
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.

MortenMacFly

Quote from: raananb on February 10, 2008, 10:52:35 AM
"MinGW: Updated: gcc-3.4.5 with Vista fix"
I didn't know about that! Great news!  :)

Quote from: raananb on February 10, 2008, 10:52:35 AM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]