Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

undefined reference to '__gxx_personality_v0'

Status
Not open for further replies.

perl7user

Programmer
Jan 4, 2009
5
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 ????????

Code:
#include<stdio.h>

int main(){ 

    printf("0");
    return 0; 

}
 
With gcc your example compiles fine.

Compilation:
Code:
$ gcc example.c -o example

Running:
Code:
$ example
0

I guess, the problem could be in your compiler installation or configuration.

But this is the Microsoft: Visual C++ Forum. Your question is off topic here. Try to post your question in these forums:
C Forum
C++: UNIX Forum
 
tried it with gcc and got same message / problem !!!!!!
 
How about engaging in conversation with people who answer the question on other forums, rather than wandering around looking for new places to ask?


--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top