cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: static link

From: Richard Pickett <Richard.Pickett_at_csrtechnologies.com>
Date: Thu, 14 Sep 2006 14:05:52 -0500

> The command
> gcc -lstdc++ -L/usr/lib /usr/lib/libcurl.a -static-libgcc -o logexe
> suggests that the problem may be your use of LINKCC -- you need to
> arrange that the static libraries come after the object file that use
> them on the command line, usually.
>

That gets me further down the road. But what a ball of ear wax it turns
into. I link, it spits out errors about some lib missing a function, I have
to figure out which lib.a has that function in it, add that to the end of
the link command, re-run the link. Next missing function... I've added 7
more libraries doing this and it seems like there's no end in site. Is there
an easy way to tell gcc "pick all appropriate libraries looking in
/usr/lib"?

 
Thanks!

Richard W. Pickett, Jr.
President, CSR Technologies .com, Inc.
Richard.Pickett_at_CSRTechnologies.com
Office - (270) 746-0324
Cell - (270) 303-9154
 
Received on 2006-09-14