From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27356 invoked by alias); 2 Nov 2007 00:55:36 -0000 Received: (qmail 27347 invoked by uid 22791); 2 Nov 2007 00:55:35 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Nov 2007 00:55:32 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Inkok-0001vv-79 for cygwin@cygwin.com; Fri, 02 Nov 2007 00:55:22 +0000 Received: from adsl-220-212-116.bhm.bellsouth.net ([68.220.212.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Nov 2007 00:55:22 +0000 Received: from worwor by adsl-220-212-116.bhm.bellsouth.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Nov 2007 00:55:22 +0000 To: cygwin@cygwin.com From: "Charles D. Russell" Subject: Re: Cygwin1.dll Date: Fri, 02 Nov 2007 00:55:00 -0000 Message-ID: References: <13539592.post@talk.nabble.com> <472A655B.DB6F6874@dessent.net> Reply-To: worwor@bellsouth.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <472A655B.DB6F6874@dessent.net> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2007-11/txt/msg00028.txt.bz2 Brian Dessent wrote: > sroberts82 wrote: > >> Can someone help me understand this, its probably really straightforward but >> I can't find an answer for this. >> Why is it when I build the most basic helloworld.exe and try and run it I >> get told of a dependancy on cygwin1.dll? Why do I need this dll, and what > > When you build that program that calls printf("hello world"), where do > you think that implementation of printf comes from? On linux you have a > libc.so, on Cygwin you have a cygwin1.dll, they are analogous. > >> how do I build to avoid needing this? > > You don't. Or you use something other than Cygwin. > Not as drastic as it sounds. Look at the compiler flag -mno-cygwin. Very handy if you occasionally want to distribute executables without cygwin1.dll. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/