Reputation: 55
Im using Cygwin and I need to install a g++ compiler, so I tried with apt-cyg.
It returns an error that happens with some packages but not with others. For instance, I could install git package, which I found in blogs that talk about this topic to try it as an example. However, when trying g++:
$ apt-cyg install g++
Installing g++
Unable to locate package g++
What is going on?
Upvotes: 2
Views: 3013
Reputation: 1259
The answer from @varro is correct. However, if you wish to use apt-cyg
, you should take advantage of it's search capabilities.
apt-cyg search g++
returns gcc-g++
.
Thus, you can execute the following apt-cyg
command to install g++:
apt-cyg install gcc-g++
Upvotes: 2
Reputation: 2492
First, I would suggest you use the standard Cygwin setup-x86_64.exe
(or its 32-bit version if appropriate) rather than apt-cyg
. Scanning the "Devel" category in setup, you will see a package gcc-g++
, which is what you want.
Upvotes: 3