This is the mail archive of the cygwin@cygwin.com 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]

Re: Are G++ generated executables absolutely cygwin1.dll dependent?


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/


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