curl-library
Re: Client using Curl-7.19.0/C-ares-1.5.3 gives linking problems
Date: Fri, 31 Oct 2008 17:21:25 -0700
On Fri, Oct 31, 2008 at 02:58:29PM -0700, Jovial Shah wrote:
> That helps. I'm linking it statically right now. Do you mean I should
> stick the output of 'curl-config --static-libs' in the link options of
> my client app ?
Yes. Something like this in a makefile should do:
all:
g++ -o myapp myapp.o $(shell curl-config --static-libs)
> Here's the error I see,
> :
> :
> Linking SamplePackage_unittest: [ERROR]
> /workplace/jovial/runtime/bin/ld-t-wrap --wrap STDERR -o
> /workplace/jovial/build/SamplePackage/X86_LINUX_GCC32_GLIBC23/DEV.STD.PTHREAD/build/test/SamplePackage_unittest.ldmap
> /usr/bin/g++ -L/workplace/jovial/build/SamplePackage/SamplePackage-1.0/X86_LINUX_GCC32_GLIBC23/DEV.STD.PTHREAD/build/lib
> -L/workplace/jovial/build/Curl/Curl-7.19.0/X86_LINUX_GCC32_GLIBC23/DEV.STD.PTHREAD/build/lib
> -Wl,-rpath, private/SamplePackage/unittest/SamplePackageTest.o
> -Wl,-Bstatic -Wl,-Bdynamic -lrt -lpthread -Wl,-Bstatic
> -lSamplePackageTest -lcurl -lresolv -Wl,-Bdynamic -lrt -lpthread
> -Wl,-Bstatic -Wl,-Bdynamic -lrt -ldl -lm -o
> /workplace/jovial/build/SamplePackage/SamplePackage-1.0/X86_LINUX_GCC32_GLIBC23/DEV.STD.PTHREAD/build/test/SamplePackage_unittest
I don't see any mention of the ares library in there.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-11-01