This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running cygwin built programs in Windows XP


Cygwin is a POSIX emulation environment for Windows. By default, the C / C++ compiler, linker and libraries all supply some portion or aspect of that emulation and the primary runtime component of the emulation is the Cygwin1.dll.

If you want to create "Windows-native" applications using Cygwin tools but which will not be "Cygwin executables" (i.e., that will be independent of Cygwin during execution) there's a compiler option "-mno-cygwin" which triggers a whole series of variant compilation and linking procedures designed to produce executables that are independent of the Cygwin runtime.

It sounds like that's the option you need to use to achieve the results you desire. If, however, you want a program that has all the POSIX capabilities provided by Cygwin itself, then you're bound to executing in a Cygwin environment, and that means at an absolute minimum, the presence of Cygwin1.dll and, if you're distributing this software, conformance with the Cygwin license's redistribution terms.

The horns of a dilemma, you say? Nonsense! It's the best of both worlds!

Randall Schulz

At 16:41 2002-12-21, John Seeliger wrote:
How do I run a program that I built with gcc under Cygwin in Windows?  When
I try to run them, it says it can't find cygwin1.dll.

John Seeliger

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]