Cygwin: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content added Content deleted
No edit summary |
|||
Line 6: | Line 6: | ||
The Cygwin installer offers to add an icon to your start menu and / or desktop. By clicking on that, you get a console which actually is a bash shell. /cygdrive/<letter>/ under Cygwin is equivalent to <letter>:\ under Windows. |
The Cygwin installer offers to add an icon to your start menu and / or desktop. By clicking on that, you get a console which actually is a bash shell. /cygdrive/<letter>/ under Cygwin is equivalent to <letter>:\ under Windows. |
||
By default the Cygwin installer does not install GCC. Just restart the installer and select GCC (and, if you want to do C++, G++) from the "devel" group. (And whatever other tools you want; recommended minimum is make, rcs, cvs, and openssh.) |
By default the Cygwin installer does not install GCC. Just restart the installer and select GCC (and, if you want to do C++, G++) from the "devel" group. Also download binutils as many applications require this. (And whatever other tools you want; recommended minimum is make, rcs, cvs, and openssh.) |
||
After the installer finished, you just pick up the GCC manual from gcc.gnu.org (or do 'info gcc' in the Cygwin shell) and be a happy camper. |
After the installer finished, you just pick up the GCC manual from gcc.gnu.org (or do 'info gcc' in the Cygwin shell) and be a happy camper. |
||
== Cygwin Known Problems == |
|||
After using the Cygwin Setup, some applications may not compile with errors such as |
|||
"default file extension - cannot create executables" or "cannot find crt2.o" or "cannot find -lmingw". |
|||
The reason for these messages is that it appears some utilities installed ''after'' the "core" Cygwin files, mess up Cygwins pointers to it's default libraries. |
|||
The solution is to start Cygwin Setup and select the following four packages to re-install: |
|||
libs/mingw-runtime |
|||
devel/gcc-mingw-core |
|||
gcc-mingw-gpp++ |
|||
mingw-runtime |
|||
Clicking on 'Keep' next to each package will change the option to "Re-install". |
|||
Then click next, next etc.. and the libraries will be re-installed. |
|||
Re-installation can be sped up by selecting "Install from Local Directory" rather than "Install from Internet" when Cygwin setup starts. |
|||
There is a small chance that Cygwin may 'break' itself after updates, but after following this procedure you should be back in business. |
|||
== Cygwin beyond OSDev == |
== Cygwin beyond OSDev == |