cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Client using Curl-7.19.0/C-ares-1.5.3 gives linking problems

From: Jovial Shah <jovialshah_at_gmail.com>
Date: Fri, 31 Oct 2008 14:58:29 -0700

On Fri, Oct 31, 2008 at 1:04 PM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Fri, Oct 31, 2008 at 12:17:30PM -0700, Jovial Shah wrote:
>> When I compile my client app to use Curl-7.19.0, I get link errors
>> stating that it couldn't find references to ares functions in
>> libCurl.a.
>
> Theoretically, `curl-config --static-libs' should provide all the
> libraries you need to link your app statically. How are you linking it
> right now?
>

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 ?

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
:
:
>>>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>

-- 
- Jovial
Received on 2008-10-31