Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Not Installed In Cygwin

Tags:

g++

cygwin

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?

like image 947
Saobi Avatar asked May 13 '09 01:05

Saobi


People also ask

Can I run C program in 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.

What is Cygwin C?

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."


2 Answers

Did you install the Devel packages?

I would suggest you read this tutorial to get up and running.

like image 171
Andrew Hare Avatar answered Sep 20 '22 06:09

Andrew Hare


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.

like image 33
paxdiablo Avatar answered Sep 19 '22 06:09

paxdiablo