This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Linking probleme when I use C++ code
- From: "karim Hamed-Abdelouahab" <khamed at progese dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 14 Mar 2003 10:22:59 +0100
- Subject: RE: Linking probleme when I use C++ code
- Reply-to: <khamed at progese dot com>
Hi,
I found the problem... ;-) Please disregard the last help mail.
Best regards.
Karim
-----Message d'origine-----
De : gcc-help-owner at gcc dot gnu dot org [mailto:gcc-help-owner at gcc dot gnu dot org]De la
part de karim Hamed-Abdelouahab
Envoyé : vendredi 14 mars 2003 10:12
À : gcc-help at gcc dot gnu dot 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.