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 :


Add a Comment

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