Hi!

When writing C++ programs with classes, I get an error with gcc, but g++ and c++ run fine.

[byt83@CPQNiT Task3]$ ls
task1.cpp task2.cpp task3.cpp
[byt83@CPQNiT Task3]$ gcc -lm -o task2 task2.cpp
/tmp/ccF3VOWt.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[byt83@CPQNiT Task3]$ g++ -o task2 task2.cpp
[byt83@CPQNiT Task3]$ c++ -o task2 task2.cpp
[byt83@CPQNiT Task3]$

Any clues, anybody? In an earlier post, gcc is supposed to be a C compiler and not a C++ compiler, but if that's the case, how would somebody explain this:

[byt83@CPQNiT Task3]$ whatis gcc
gcc (1) - GNU project C and C++ compiler


-TiN
(The iNternet)