curl-users
Re: Linking problem with a sample example ftpget.c
Date: Thu, 13 Mar 2003 16:09:46 +0100 (CET)
On Thu, 13 Mar 2003, karim Hamed-Abdelouahab wrote:
> I tried to compile the example "ftpget.c" on a linux (RedHat 8.0
> distribution) with gcc (gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)).
> I downloaded the libcurl (version 7.10.2) and I installed openssl-0.9.6i.
>
> I tried also with libcurl (version 7.10.3) I've got the same linking
> problem like printed among:
>
> gcc -c -g main.cc
> gcc -o ../../../bin/recorder main.o -lcurl -lssl -lcrypto
> main.o: In function `main':
> /home/khamed/dev/src/recorder/src/main.cc:31: undefined reference to
> `__gxx_personality_v0'
> collect2: ld a retourné 1 code d'état d'exécution
> make: *** [recorder] Erreur 1
I don't understand.
You say you can't compile ftpget.c and then you show a main.cc being
compiled? What are we supposed to do with that output?
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031enReceived on 2003-03-13