Cygwin gcc-g++ GNU Compiler Collection (C++) v.s. mingw-gcc-g++ GNU
Full title: Cygwin gcc-g++ GNU Compiler Collection (C++) v.s. mingw-gcc-g++ GNU Compiler Collection (C++)
Hello! Sorry if this is the wrong forum. I know Cygwin is Windows but it is also sort of Linux and I come here because people are friendly and generally more knowledgeable.
Okay, so both of these things are packages you install via Cygwin's setup application.
When I installed mingw-gcc-g++, typing in "gcc -v" or "g++ -v" in cygwin bash yielded no results.
I then added MinGW/bin (from a previous installation of MinGW completely seperate and not related to cygwin) to my Windows path, and then it "g++ -v" yielded results (the version and everything).
I then removed MinGW/bin from my path. I then installed gcc-g++ GNU compiler collection. "g++ -v" still yielded results.
So as you can see, mingw-gcc-g++ GNU Compiler Collection did nothing. Installing MinGW manually and adding it to path allows one to use the g++ compiler, as does installing the g++ compiler via cygwin (where you don't even need MinGW).
Where does Cygwin install packages? What was actually installed when I installed mingw-gcc-g++ and why didn't it work?
Finally and most importantly, what is the difference between gcc-g++ GNU Compiler Collection (C++) and mingw-gcc-g++ GNU Compiler Collection?