Author Topic: How to update GCC  (Read 12739 times)

Offline olspookishmagus

  • Single posting newcomer
  • *
  • Posts: 5
How to update GCC
« on: July 13, 2007, 09:10:55 pm »
Hello there and thanks for CodeBlocks!

This a question regarding how to upgrade GCC to the latest version, step-by-step.
I have donwloaded the 1.0rc2 version of codeblocks with MinGW compiler on it.

Suppose now that I want to update the C++ compiler included with that download to it's latest version.
Which file do I have to download from the appropriate group from here and how will I get codeblocks to use the latest up-to-date version?

Thanks in advance.

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: How to update GCC
« Reply #1 on: July 13, 2007, 09:36:33 pm »
I think it is far more easy to install both components in their newest Version directly and on their own if you want to have them.

Code::Blocks might work to update by simply extracting the newest nightly to the place you installed the rc2.

For MinGW you need at last the binutils and the runtime at least. (If you install it separately the Installer is a great thing)

Offline olspookishmagus

  • Single posting newcomer
  • *
  • Posts: 5
Re: How to update GCC
« Reply #2 on: July 13, 2007, 09:46:08 pm »
Do you mean downloading Code:Blocks without MinGW and then installing MinGW, GCC, GDB a-top the Code:Blocks installation?

Is there some guide on how to do this?

I know this is very basic but since there will be such a guide, lots of other people might benefit from it. If there isn't I'll try to make one and with your help I'll improve it. So, if I decide to make one should I make it in the Code:Blocks wiki?

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: How to update GCC
« Reply #3 on: July 13, 2007, 10:05:02 pm »
There is a HowTo in the CB-WIKI:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Windows

I would recomend to install MinGW at C:\MinGW and not somewhere in the CodeBlocks folder however ;)

Offline k2dave

  • Single posting newcomer
  • *
  • Posts: 9
Re: How to update GCC
« Reply #4 on: July 14, 2007, 12:25:35 am »
I would really recommend starting over with both mingw 3.4.5 and a new CB nightly...
If you install mingw first, I think your new CB will autodetect your compiler, with all the correct paths set up!
Set up mingw and codeblocks up in different folders so you can upgrade either one separately!

Mingw manual install:
download from http://sourceforge.net/project/showfiles.php?group_id=2435:

binutils-2.17.50-20060824-1.tar.gz
gcc-core-3.4.5-20060117-1.tar.gz
gcc-g++-3.4.5-20060117-1.tar.gz
mingw32-make-3.81-2.tar.gz
mingw-runtime-3.12.tar.gz
mingw-utils-0.3.tar.gz
w32api-3.9.tar.gz

Create a new directory for mingw (c:\mingw) - do not install over an old installation!
extract all the above files to your new mingw directory - (all the appropriate sub-folders should be preserved)
if you want the debugger, find gdb-6.3-2.exe, and point the installer to your mingw folder.

CodeBlocks - follow the directions for installing a nightly build - (rc2 is way outdated)
Grab the nightly AND the unicode dll from http://forums.codeblocks.org/index.php/topic,6409.0.html
extract your nightly in a new folder - DO NOT install over your old rc2, and NOT in your mingw folder.
extract your unicode dll to the same folder.
Run your new codeblocks, and it should autodetect your new mingw compiler(I think)

This worked for me on XP - hope it helps

Offline koala01

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to update GCC
« Reply #5 on: July 14, 2007, 02:45:13 am »
Hi,

If you want, and if you have some interset for, you may compile your self the lastest version of gcc and binutils.

For sample, i'm curently running on nigthly build, with GCC 4.2.0, binutils 2.17, and lastest revisions of WxWidget and QT...

All that was by my self compiled  :)... but you have to know that it ask long time, depending from your computer  :P

You will then need
  • a running compiler (like MinGW)
  • maybe a minimal linux system (like MSYS, see MinGW)
  • binutils sources (search it on GNU FTP)
  • gcc sources (search it on GNU FTP)
  • W32api sources
  • maybe GMP and MPRF libraries sources (if you want enable fortran in your new compiler... see google ;))
  • maybe png, jpeg, mng and other image libraries sources
  • maybe z, tar and other compression libraries sources
  • maybe some graphical libraries sources (like wxWidget, QT, GTK...)
  • all other usefull stuff i forgoted :P
You can find more information about compiling binutils and GCC on MinGW wikipedia.

Hope it helps ;)
(PS sorry for my poor english, but i speek mostly french :P)

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: How to update GCC
« Reply #6 on: July 14, 2007, 02:54:18 am »
Or, you could visit the page linked in my signature and download an already-built version of GCC, and save yourself the trouble of building it. ;)
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: How to update GCC
« Reply #7 on: July 14, 2007, 11:05:52 am »
extract your unicode dll
There is no such thing as unicode dll. Unicows (MSLU) library is outdated and static (libunicows.a, right?) and needed only in compiling for Win95/98. Newer (Windows NT/2000/XP/Vista) are unicode by nature.
He meant wxWidgets unicode dll.
No one whose IQ is above 92 don't need written "guide" for this ("installing" or upgrading)
  - if he/she needs one, I guess that strive for "writing programs" is passing one...
Not necessarily. A person coming from vc++ (or other compiler) without linux background having never heard of binutils would probably have his problems.
Extracting files shouldn't be a problem, but deciding which one he needs and where he has to extract it to isn't that obvious.
Beware, cmd.exe has auto-completion, which means you type 7z x bi<tab> and miraculously full line appears.
If I remember it correctly, it is disabled by default (xp) and you have enable it by setting a registry value.

Offline k2dave

  • Single posting newcomer
  • *
  • Posts: 9
Re: How to update GCC
« Reply #8 on: July 14, 2007, 02:07:46 pm »
Quote
No one whose IQ is above 92 don't need written "guide" for this ("installing" or upgrading)

Isn't this exactly what was asked for in the first post?