Possible Duplicate:
Undefined Symbol ___gxx_personality_v0 on link
I have a problem with the following program.
// fkt.cpp
#include "fkt.h"
int add2(int a, int b)
{
return a+b;
}
And the header:
// fkt.h
int add2(int a, int b);
Now I compile this with:
g++ -c fkt.cpp
Now I run nm
and get:
00000000 T _Z6add2ii
U __gxx_personality_v0
When I want to use the function anywhere I get:
(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
How can I solve this problem? (I'm using Ubuntu Linux.)
g++
to do the linking too if you're not already.) – Rup May 18 '11 at 13:52g++ ftk.cpp -o ftk
? – karlphillip May 18 '11 at 13:53gcc
tog++
in the Makefile....LOL ;) – enthusiasticgeek Mar 15 '13 at 18:12