Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Mon, 10 Sep 2001 10:14:40 +0200
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Are G++ generated executables absolutely cygwin1.dll dependent?
Message-ID: <20010910101440.K937@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <5.1.0.14.0.20010910080941.033104c0@pop.skynet.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <5.1.0.14.0.20010910080941.033104c0@pop.skynet.be>; from bart.dubois@skynet.be on Mon, Sep 10, 2001 at 08:15:10AM +0200
X-MIME-Autoconverted: from 8bit to quoted-printable by cygnus.com id BAA07761
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA23917

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/

