Linking probleme when I use C++ code

karim Hamed-Abdelouahab khamed@progese.com
Fri Mar 14 09:29:00 GMT 2003


Hi,
I found the problem... ;-) Please disregard the last help mail.

Best regards.
Karim

-----Message d'origine-----
De : gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]De la
part de karim Hamed-Abdelouahab
Envoyé : vendredi 14 mars 2003 10:12
À : gcc-help@gcc.gnu.org
Objet : Linking probleme when I use C++ code


Hi,

I tried to compile on a linux (RedHat 8.0
distribution) with gcc (gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)).

I get the linking problem 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 think, I have to link an other library in order to compile C++ files.

Can someone give me a hint.
Best regards.
Karim.



More information about the Gcc-help mailing list