Linking probleme when I use C++ code

karim Hamed-Abdelouahab
Fri Mar 14 09:15:00 GMT 2003


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
> gcc -o ../../../bin/recorder main.o -lcurl -lssl -lcrypto
> main.o: In function `main':
> /home/khamed/dev/src/recorder/src/ 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.

More information about the Gcc-help mailing list