There isn't a build-essential package in Cygwin.
Build-essential is a collection of packages. So you'll have to select the packages manually, which I believe are the following:
make
automake
gcc
gcc-c++
Assuming you're doing development, you'll want to select those packages from the Devel branch. This is done when you first install Cygwin and the installer asks you to select the packages, after choosing the download site from the list.
As for the Gtk-WARNING **: can not open display:
error, this is because your system is not running Cygwin's X11 display server, which provides a surface for graphical applications to render to. Check out http://x.cygwin.com/.
If you want to run gedit in Windows, you should get the binary for windows here. That's built for Windows and doesn't need Cygwin.
EDIT: Running sudo apt-get install build-essential
on Elementary OS Freya mentions the following dependencies will be installed as well, so you'll probably want that for a 'closer-to-Linux' build environment as well.
The following extra packages will be installed:
- g++
- g++-4.8
- libstdc++-4.8-dev
Suggested packages:
- g++-multilib
- g++-4.8-multilib
- gcc-4.8-doc
- libstdc++6-4.8-dbg
- libstdc++-4.8-doc
The following NEW packages will be installed:
- build-essential
- g++
- g++-4.8
- libstdc++-4.8-dev
The list of files installed can be found here
and the contents of the file list (current as of 4/24/2014) can be found in this PasteBin I made.
Makefile
first and remove all occurrences of$(LFS)
which is looking for a non existing shell variable and causing the compiler command option to have theundefined
(an obvious error) in it.