This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Are G++ generated executables absolutely cygwin1.dll dependent?
- To: cygwin at cygwin dot com
- Subject: Re: Are G++ generated executables absolutely cygwin1.dll dependent?
- From: Corinna Vinschen <cygwin at cygwin dot com>
- Date: Mon, 10 Sep 2001 10:14:40 +0200
- References: <5.1.0.14.0.20010910080941.033104c0@pop.skynet.be>
On Mon, Sep 10, 2001 at 08:15:10AM +0200, Bart Du Bois wrote:
> Greetingz,
>
> [Context]
> I use Cygwin strictly for the GNU C++ Compiler and the make-functionality,
> so it makes no difference if I'm working under Linux or under Windows.
>
> [Goal]
> I want to achieve 1 single executable, independent of any other files.
>
> [Problem]
> I noticed that executables, generated by the GNU C++ Compiler (g++) can
> only be run in coöperation with the file *cygwin1.dll*
>
> [Question]
> Is there a way to generate an executable which doesn't need this dll to
> run? A special compiling-option perhaps? My knowledge of the whole
> Cygwin-structure is too small to have a clear view on this subject.
You need the DLL to get the whole POSIX functionality. If you're
only using Win32 API calls you can build using the -mno-cygwin
option.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/