Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update GCC in MinGW on Windows?

Tags:

c++

gcc

c++11

mingw

I'm used to manually install GCC from source before on Ubuntu and it was a painful process. So I really don't want to do repeat this process. Currently, I have MinGW and GCC (4.6.2) installed on my machine. So is there an easy way to update GCC without building it entirely from source? Has anyone done it before can share me some tips?

like image 936
Chan Avatar asked Mar 26 '12 00:03

Chan


People also ask

How do I use GCC on Windows MinGW?

Install GCC on Windows First, select mingw-get from your application menu to launch it. To install GCC, click the GCC and G++ package to mark GNU C and C++ compiler for installation. To complete the process, select Apply Changes from the Installation menu in the top-left corner of the mingw-get window.


2 Answers

Update using terminal:

  1. Run the command prompt/terminal (cmd or sh).

  2. Update the package list:

    mingw-get update 
  3. After updating the package list, run:

    mingw-get upgrade 

When the command finishes running, all of your packages will be upgraded.


Update using the GUI version:

If you aren't used to the terminal, there is also a GUI version of MinGW called "MinGW Installation Manager", which is normally located at:

C:\MinGW\libexec\mingw-get\guimain.exe 
  1. When the GUI is open, tap Installation -> Update Catalogue. This will update the package list.

  2. After that, tap Installation -> Mark All Upgrades. This will select all of the packages which can be upgraded.

  3. Finally, tap Installation -> Apply Changes to apply the upgrades.

like image 148
Yuriy Petrovskiy Avatar answered Sep 22 '22 23:09

Yuriy Petrovskiy


Snapshots and release builds of the MinGW http://code.google.com/p/mingw-builds/downloads/list

like image 42
sigman Avatar answered Sep 19 '22 23:09

sigman