When I try to compile c++ code with gcc I have error report undefined reference to __gxx_personality_v0. To solve this problem, you can choose the method :
- Compile your code with g++
- Add flag -lstdc++ at your command when compiling code.
- Add text void *__gxx_personality_v0; in your source code.