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

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

gcc prog.cpp
will produce that message.

Try
gcc prog.cpp

or
g++ prog.cpp

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.