root@localhost dss]# gcc -o test test.cpp
/tmp/ccY3hmyr.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[root@localhost dss]# gcc -o test test.cpp -lstdc++
有两种讲法:
1. Linux Develop Notes
2. 唉,用gcc命令编译C程序,用g++命令编译C++程序。