Link error “undefined reference to `__gxx_personality_v0′” and g++ [duplicate]
If g++ still gives error Try using: Look at this post: What is __gxx_personality_v0 for? Make sure -lstdc++ is at the end of the command. If you place it at the beginning (i.e. before file.c), you still can get this same error.