Code::Blocks Forums
User forums => Help => Topic started by: rahul8590 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 .
-
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.
-
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 .
-
This is direct link to MinGW installer: http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download (http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download)
-
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!
-
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
-
wow, this thread is 7 years old