User forums > Help

How to update GCC

(1/2) > >>

olspookishmagus:
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.

darthdespotism:
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)

olspookishmagus:
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?

darthdespotism:
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 ;)

k2dave:
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

Navigation

[0] Message Index

[#] Next page

Go to full version