I just installed Cygwin and can launch a bash shell from windows, do ls
, emacs
, vi
, etc. However, when I do g++
it says command not found.
I thought g++
was installed by default in Cygwin? If that's not the case, what are the exact categories under which I can add g++
as a package to my cygwin?
Cygwin is a UNIX environment, developed by Red Hat, for Windows. You can compile your C programs by the command gcc in the Cygwin command window.
According to the developers, "Cygwin is a Open-source Linux-like environment for Windows. It consists of two parts: A DLL ( cygwin1. dll ) which acts as a Linux API emulation layer providing substantial Linux API functionality. A collection of tools which provide Linux look and feel."
Did you install the Devel
packages?
I would suggest you read this tutorial to get up and running.
It's a good idea to just install everything with CygWin. When you run setup, just click on the circular icon at the top level until it reads "Full" rather then "Default" - that will install all the packages.
I've sometimes had trouble installing single packages due to dependencies but a full install is not affected by that same problem.
Disk space is cheap, your time spent trying to figure out why things don't work is not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With