curl-library
Re: Problem with -static -lcurl
Date: Sat, 27 Jan 2007 09:01:07 +0100
Dnia sobota, 27 stycznia 2007 00:01, James Dennett napisał:
> Move -lcurl to the end of your command line and see if that helps.
I try this:
g++ sysinfo.o uptime.o meminfo.o cpuinfo.o qbs.o update.o `curl-config --libs`
-static -o sysinfo
Thanks! :) Application build and is working but i have this:
/usr/lib/libcurl.a(ldap.o): In function `Curl_ldap':
/usr/src/curl-7.16.0/lib/ldap.c:152: warning: Using 'dlopen' in statically
linked applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/libcurl.a(netrc.o): In function `Curl_parsenetrc':
/usr/src/curl-7.16.0/lib/netrc.c:120: warning: Using 'getpwuid' in statically
linked applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/libcurl.a(hostip6.o): In function `Curl_getaddrinfo':
/usr/src/curl-7.16.0/lib/hostip6.c:294: warning: Using 'getaddrinfo' in
statically linked applications requires at runtime the shared libraries from
the glibc version used for linking
/usr/lib/libcurl.a(connect.o): In function `tcpnodelay':
/usr/src/curl-7.16.0/lib/connect.c:641: warning: Using 'getprotobyname' in
statically linked applications requires at runtime the shared libraries from
the glibc version used for linking
I have glibc and devel. What next?
-- www.thecamels.orgReceived on 2007-01-27