user2136754
user2136754

Reputation: 107

g++ with Dev-C++

It has come to my understanding that the error

[Linker error] undefined reference to `__gxx_personality_v0'

is caused by trying to compile a C++ program with the gcc compiler. This would be solved by compiling the program with a g++ compiler, but how does one get Dev-C++ to use the g++ compiler???

Upvotes: 0

Views: 4220

Answers (2)

Gearoid Murphy
Gearoid Murphy

Reputation: 12126

That error may also be caused by the absence of libstdc++, make sure that you're linking to that library via '-lstdc++', this should be the last linking command.

Upvotes: 0

Gordon
Gordon

Reputation: 1914

  1. Make sure your project is a C++ project, not a C project. Last time I was forced to use Dev-C++, I was unable to find a working method of doing this. You may have to delete the project file and create a new one.
  2. Get rid of that broken piece of junk. There are far better IDEs available. Here are two:

Upvotes: 2

Related Questions