cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Link error in Sun5.6, why should gcc lib must needed?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 16 Dec 2004 00:01:15 -0800

On Thu, Dec 16, 2004 at 11:54:39AM +0800, hzhijun wrote:
> When I make successfully in Sun5.6, I use -lcurl to link my program. I got the
> following errors:
>
>
>
> ild: (Performing full relink) too many files changed
> ild: (warning) shared lib, needed by argument lib -lcurl, not found ::
> libgcc_s.so.1
> ild: (undefined symbol) __floatdidf -- referenced in /home/hezy/FREE_LIB/lib/
> libcurl.so
>
>
>
> I add the gcc lib path to LD_LIBRARY_PATH as the following and i link
> successfully.
>
> setenv LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
>
>
>
> When I begin to start my program, it prompt the libgcc_s.so related error, and
> I have to setenv again in the running enviroment.
>
>
>
> Why? How to deal with it?
>

It sounds like libcurl may have been compiled with a different compiler
than your application. Did you use curl-config to set the right options
when compiling/linking your app?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2004-12-16