Post by Frédéric BronPost by Edward DienerI always install all the MingW gcc versions separately in their
own directory
How do you do that?
1) Download and install mingw-get into your MinGW directory. Configure
it to use separate directories for MinGW and MSYS (i think it already
does by default, but it's best to make sure), be sure to use patterns
(%r, i think?) instead of hard-coded absolute paths.
2) Use mingw-get to install gcc version you want, and all libraries
and programs you need.
Repeat 1) and 2), installing into different MinGW directories, but
configuring the same MSys directory.
When you need to switch to a different MinGW version - edit
/etc/fstab, change the directory to which /mingw points, then run
`mount -a' in MSYS.
If you are not using MSys, it's a bit more involved. You'd want to
install MinGWs into differently named directories, then create a
directory symlink (or a junction, if you're using NT version earlier
than 6) with a generic name (say, c:/mingw32), and make it link to one
of your MinGW directories. When you need to switch to a different
MinGW version, you just change the directory the link points at.
Both editing /etc/fstab and re-mounting AND changing the link/junction
can be automated with conveniently-named scripts and switch your MinGW
version faster than copying would.
Note that you'll be switching the whole MinGW subsystem (with
libraries and anything else you've installed into MinGW directory).
This is intentional - due to ABI changes between gcc versions chances
are, you'll have to re-compile everything anyway.