cpp2puser — 2009-03-22T10:51:51-04:00 — #1
I'v tried to compile a small test program with cc/gcc
but I'v got the following error:
/tmp/ccD16111.o<.eh_frame+0x11>: undefined reference to '__gxx_personality_v0' collect2: ld command 1 exit status
I did EXACTLY as in the book.
What can I do ????????
jtjohn632 — 2009-03-26T01:34:57-04:00 — #2
What is the name of the file your trying to compile.
If the file name finish by .cc .cp .cxx .cpp .CPP. c++ .C
gcc will preprocessed source code as C++ source code.
In this case you should link your program to the libstdc++ which define the reference __gxx_personality_v0
For do that just run
gcc file.cpp -lstdc++
and the trick will be done.
But i you don't specially do C++ and compile with gcc. Just rename your source code in .c
mittineague — 2014-09-19T15:50:28-04:00 — #3
This topic is now archived. It is frozen and cannot be changed in any way.