News:

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

Main Menu

How to upgrade Gcc in code blocks .?

Started by rahul8590, March 14, 2010, 05:13:01 AM

Previous topic - Next topic

rahul8590

I have a very old Gcc compiler version 0.99 and i want to upgrade it , i wold be glad if you could help me out .

koso

You have to:

1. download and install compiler. There are many available (MinGW, Cygwin).
2. Open Compiler And Debugger configuration in Code::Blocks and modify compiler settings. There are two possibilities. Either you modify existing "compiler", or you add new => using second, you will be able to use both old and new compiler.

rahul8590

about that download and install . I found the plugin settings  with the install new option in it . But i dont know wat exactly to download for the new installation, cuz when i saw the installation folder in sourceforge.net  , it had many files and i was completely baffled on which one to pick on .
I would be glad if you could help me out .


Aras

This is how I did it:

1) downloaded actual minGW and installed it
   e.g. installs to:
   "C:\Program Files (x86)\mingw-w64\i686-7.1.0-posix-dwarf-rt_v5-rev1"

2) CodeBlocks: modify compiler + debugger path and exe's:
   a) Settings|Compiler -> modify as in attached JPG
   a) Settings|Debugger -> modify as in attached JPG
   Do NOT press "Auto-detect"!!

3) DONE! C++11 fully supported (e.g. to_string(), stof() etc.)!

Good luck everybody!

visir

I use msys2 for that. With that, you can also install libraries without compiling them manually, in theory.

read
http://www.msys2.org/
https://github.com/msys2/msys2/wiki/MSYS2-installation
https://sourceforge.net/p/mingw-w64/wiki2/Usable%20compiler%20executable/
https://forum.openmw.org/viewtopic.php?f=4&t=4330


After you install it, in settings->compiler->toolchain executables, set
compiler's installation directory: C:\msys64\mingw32
C compiler: gcc.exe
C++ compiler: g++.exe
Linker for dynamic libs: g++.exe

visir