curl-library
RE: run time error
Date: Tue, 21 Aug 2001 09:40:06 -0700
I installed curl and libcurl is located in /usr/local/curl/
Here is my makefile
CC=gcc
CFLAGS = -I../include -c
LD = ld
# This should point to a directory that holds libcurl, if it isn't
# in the system's standard lib dir
# We also set a -L to include the directory where we have the openssl
# libraries
LDFLAGS = -B dynamic -G -L/usr/local/curl/lib -L/usr/local/ssl/lib
-L/usr/local/lib/
all: ibill.so
ibill.so: ibill.o
$(LD) $(LDFLAGS) -o ibill.so ibill.o
# We need -lcurl for the curl stuff
# We need -lsocket and -lnsl when on Solaris
# We need -lssl and -lcrypto when using libcurl with SSL support
# We need -ldl for dlopen() if that is in libdl
# We need -lpthread for the pthread example
LIBS = -lcurl -lsocket -lnsl -lssl -lcrypto -ldl
clean:
rm -f ibill.so ibill.o
It compiles fine but when I run it. I get the error message below.
-Jimmy
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Monday, August 20, 2001 11:16 PM
To: libcurl Mailing list
Subject: Re: run time error
On Mon, 20 Aug 2001, Jimmy Tam wrote:
> file /usr/local/miva/lib/ibill.so: symbol curl_easy_init: referenced
> symbol not found
> Anyone know what this error message means?
curl_easy_init is a function in libcurl. This implies that the program
didn't
find/load libcurl properly.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-08-21