0

Hi,
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 ????????

#include<stdio.h>

int main(){ 

    printf("0");
    return 0; 

}

cvv3@yahoo.com

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by Salem
0

Compile your c++ program with a c++ compiler.

gcc prog.cpp
will produce that message.

Try
gcc prog.cpp

or
g++ prog.cpp

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.