[clug] compiling problem

Martijn van Oosterhout kleptog at svana.org
Wed Nov 29 10:59:25 GMT 2006


On Wed, Nov 29, 2006 at 09:37:48PM +1100, Adrian Blake wrote:
> I am trying to compile someone else's software and I get the following 
> error. In this instance I cannot fathom what path to take to resolve the 
> problem.
> 
<snip>
> /usr/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> 
>   the compiling direction is:
> gcc -static -O2 -g -Wall decreasoner.c -o decreasoner

Given you're using -static, I imagine it's complaining you don't have
the static C library installed. Does it work if you leave that out?

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog at svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20061129/908be2da/attachment-0001.bin


More information about the linux mailing list