Author Topic: How to upgrade Gcc in code blocks .?  (Read 11848 times)

Offline rahul8590

  • Single posting newcomer
  • *
  • Posts: 2
How to upgrade Gcc in code blocks .?
« on: March 14, 2010, 05:13:01 am »
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 .

Offline koso

  • Multiple posting newcomer
  • *
  • Posts: 58
Re: How to upgrade Gcc in code blocks .?
« Reply #1 on: March 14, 2010, 09:41:05 am »
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.

Offline rahul8590

  • Single posting newcomer
  • *
  • Posts: 2
Re: How to upgrade Gcc in code blocks .?
« Reply #2 on: March 14, 2010, 10:44:36 am »
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 .

Offline koso

  • Multiple posting newcomer
  • *
  • Posts: 58

Offline Aras

  • Single posting newcomer
  • *
  • Posts: 1
Re: How to upgrade Gcc in code blocks .?
« Reply #4 on: July 28, 2017, 12:26:57 pm »
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!

Offline visir

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: How to upgrade Gcc in code blocks .?
« Reply #5 on: July 28, 2017, 01:44:33 pm »
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

Offline visir

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: How to upgrade Gcc in code blocks .?
« Reply #6 on: July 28, 2017, 01:45:59 pm »
wow, this thread is 7 years old