cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Linking problem with a sample example ftpget.c

From: karim Hamed-Abdelouahab <khamed_at_progese.com>
Date: Fri, 14 Mar 2003 08:55:24 +0100

Hi Daniel,

I copied the content of ftpget.c in main.cc and compiled. ;-)
I thought that output can be helpfull...

Where is the problem?
regrards.
-----Message d'origine-----
De : curl-users-admin_at_lists.sourceforge.net
[mailto:curl-users-admin_at_lists.sourceforge.net]De la part de Daniel
Stenberg
Envoyé : jeudi 13 mars 2003 16:10
À : Curl Mailinglist
Objet : Re: Linking problem with a sample example ftpget.c

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?thaw0031en
-------------------------------------------------------
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?thaw0031en
Received on 2003-03-14