Cygwin: Difference between revisions

1,219 bytes added ,  11 months ago
no edit summary
[unchecked revision][unchecked revision]
No edit summary
No edit summary
 
(5 intermediate revisions by 3 users not shown)
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.
 
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.
 
== Cygwin Known Problems ==
Some applications may not compile with Cygwin with such errors 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
Click on 'Keep' next to each package to 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. This will use packages already on your computer, installing from the Internet each time will guarantee any updates available are installed.
 
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 ==
If you go beyond OS development, there are several caveats regarding Cygwin that make its approach of "POSIX on Windows" less than perfect. Some of these caveats are collected in the [[Cygwin Issues]] document. Two more refer to [[Licensing Issues]] when linking Windows applications using Cygwin:
 
* linking to the Cygwin DLL (POSIX API) makes your code fall under the GPL if distributed, and being dependent on the Cygwin DLL being present in a system;
Line 18 ⟶ 35:
If you intend to use the Cygwin gcc for building software, you should check out the permutations of the "win32" and "no-cygwin" options.
 
== ExternalSee LinksAlso ==
 
http://www.cygwin.com/ - Cygwin Environment Official Site
=== Articles ===
* [[Cygwin Issues]]
 
=== External Links ===
http* [https://www.cygwin.com/ - Cygwin Environment Official Site]
 
[[Category:CompilersCompatability Layers]]
[[Category:Linux]]
[[Category:Windows]]
Anonymous user