undefined reference to __gxx_personality_v0

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 :

  1. Compile your code with g++
  2. Add flag -lstdc++ at your command when compiling code.
  3. Add text void *__gxx_personality_v0; in your source code.

Source :

http://stackoverflow.com/questions/329059/what-is-gxx-personality-v0-for
http://mail.gnome.org/archives/gtk-app-devel-list/2004-October/msg00207.html

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.