Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: geneSmith <gene.smith@sea.siemens.com>
Subject: Re: __getreent undefined on linux app build
Date: Fri, 11 Jun 2004 18:11:29 -0400
Lines: 15
Message-ID: <cadamj$s4j$1@sea.gmane.org>
References: <cacvd3$vfu$1@sea.gmane.org> <cad5ca$i3b$1@sea.gmane.org> <6.1.0.6.0.20040611171421.03297b68@pop.prospeed.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 66.168.89.166
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
In-Reply-To: <6.1.0.6.0.20040611171421.03297b68@pop.prospeed.net>

Larry Hall wrote, On 6/11/2004 5:22 PM:
> Yes, libcygwin.a is the import library.  But I don't understand why you 
> need it (or -lc either for that matter).  Just compiling with Cygwin's
> gcc/g++ gets you all this, unless you're using -mno-cygwin, in which 
> case you're undoing it by explicitly linking Cygwin anyway.  Clearly,
> you're doing something I don't understand but in the whole sheme of 
> things, my understanding of your problem isn't a requirement for
> anything. ;-)

When I made a hello world which calls printf I don't have to do -lc on 
gcc cmd line. But when I make a lib which calls c lib functions, I have 
to provide -lc (and -lcygwin). Not doing -mno-cygwin.

-- 
Lit up like Levy's


--
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/

