Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: run time error

From: Jimmy Tam <>
Date: Wed, 22 Aug 2001 09:35:32 -0700

Now I am getting this error. miva: fatal: relocation error: file
/usr/include/curl/lib/ symbol __eprintf: referenced symbol not

-----Original Message-----
From: Daniel Stenberg []
Sent: Wednesday, August 22, 2001 12:09 AM
To: libcurl Mailing list
Subject: RE: run time error

On Tue, 21 Aug 2001, Jimmy Tam wrote:

> 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.o
> $(LD) $(LDFLAGS) -o 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

The LIBS variable isn't used anywhere, so your link line above is

Set LIBS before you link your program and then link with a line similar to:

        $(LD) $(LDFLAGS) $(LIBS) -o ibill ibill.o

    Daniel Stenberg -- curl groks URLs --
Received on 2001-08-22

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET