Mail Archives: djgpp/2013/02/19/11:42:41
> 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 -