cURL / Mailing Lists / curl-library / Single Mail


linking trouble: not found

From: queto putito <>
Date: Wed, 9 Jan 2008 14:26:40 -0600 (CST)

Hi there

I'm trying to run a C program that uses libcurl
like this:
`curl-config --cc --cflags --libs` -L/usr/local/lib -o
first_try first_try.c

The compilation is ok but when I try to run, it
returns the following message:
./first_try: error while loading shared libraries: cannot open shared object file: No such
file or directory is located at /usr/local/lib

curl-config -cc returns gcc
curl-config --cflags returns -I/usr/local/include
curl-config --libs returns -L/usr/local/lib -lcurl
curl-config --version returns libcurl 7.17.1

I tried using a makefile and it's the same result
I tried to set LD_LIBRARY_PATH to /usr/local/lib but
it has no effect.

Any idea ?

ˇCapacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
Received on 2008-01-09