A
Albert Oppenheimer
I have a small program, test.c. It runs OK. This is on Linux (kernel
2.6.8.1, GCC 3.4.1).
I decided to convert it to C++ before expanding it to a larger program. I
changed the filename to test.cpp and added
extern "C" {
}
around main and all the non-static subroutines. It compiles OK, but when I
link it, it says:
test.o (.eh_frame+0x11): undefined reference to '__gxx_personality_v0'
My program makes no reference to __gxx_personality_v0.
What do I need to do to get this program to link as a C++ program?
Thanks,
Allie
2.6.8.1, GCC 3.4.1).
I decided to convert it to C++ before expanding it to a larger program. I
changed the filename to test.cpp and added
extern "C" {
}
around main and all the non-static subroutines. It compiles OK, but when I
link it, it says:
test.o (.eh_frame+0x11): undefined reference to '__gxx_personality_v0'
My program makes no reference to __gxx_personality_v0.
What do I need to do to get this program to link as a C++ program?
Thanks,
Allie