delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/02/19/11:42:41

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Tue, 19 Feb 2013 18:27:00 +0200
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: ld canot find -lgcc and -lc
In-reply-to: <c8729087-538d-4355-a855-b4f1aa7a2b79@googlegroups.com>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp AT delorie DOT com
Message-id: <83ppzwp8vf.fsf@gnu.org>
References: <c8729087-538d-4355-a855-b4f1aa7a2b79 AT googlegroups DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Tue, 19 Feb 2013 02:04:38 -0800 (PST)
> From: mahesh DOT s DOT chavan AT gmail DOT com
> 
> When I tried to compile sqlite3 from source, object files were produced.  But when I tried to build exe using libsqlite3.a, it gave me error ld can not find lgcc and -lc.
> libgcc.a was there in lib\djgpp\4.72 subdirectory which I copied to c:\djgpp\lib.

You shouldn't need to copy libgcc.a.

> libc.a is already there in c:\djggp\lib.
> my djgpp.env is set correctly as djgpp=c:/djgpp/djgpp.env
> In my config.sys, I have kept files=50 and buffers=40.
> I am using DOSLFN to enable long file names on DOS platform.
> Can anybody tell me, how can I get rid of this error. 

Add -v to the link command line and post here everything the compiler
and the linker display as result (if looking at that output doesn't
give tell you what's wrong).  Also tell which command you invoked that
failed in this manner.

One popular mistake is to invoke ld directly instead of via gcc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019