Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-30-2010, 02:36 AM   #1
LQ Newbie
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
A C program which was compiled properly in DevCPP is not compiling in Linux-Fedora.

A C program which compiled well in Dev CPP compiler is not compiling in Linux-Fedora.It shows the following error message
/tmp/ccy02C6e.o.eh_frame+0x12):undefined reference to '__gxx_personality_v0'
collect2:ld returned 1 exit status
Old 10-30-2010, 03:21 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Can you post the code along with the full command line you're using to compile it, please?
Old 10-30-2010, 03:37 AM   #3
Registered: Aug 2010
Distribution: Desktop and netbook: Debian Squeeze; Router: DD-WRT
Posts: 43

Rep: Reputation: 5
Well, you haven't posted any code or told us how you're compiling this, so I can only make guesses here.

Originally Posted by varalakshmi View Post
/tmp/ccy02C6e.o:(.eh_frame+0x12):undefined reference to '__gxx_personality_v0'
collect2:ld returned 1 exit status
This is the linker throwing an error that the symbol '__gxx_personality_v0' hasn't been defined. A Google search for ".eh_frame" reveals to me that it is an exception-handling code section (and exceptions are in C++, not C). A search for "__gxx_personality_v0" shows me that this symbol is indeed exception-related and is defined in libstdc++ of GCC.

So, is this really C code that you're compiling, or is it C++? What command (`gcc` or `g++`) are you using to compile it? If you're using `gcc`, try `g++` instead (as this automatically links in the C++ libraries you need).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Compiling a program both for Fedora and Ubuntu mrJones Linux - Software 13 08-02-2010 12:36 PM
Devcpp jokar.mohsen Linux - Software 2 04-19-2010 08:15 AM
writing and compiling java program in fedora 12 kushwaha.naveen Linux - Newbie 2 03-21-2010 03:44 PM
program for writing/compiling C++ in Fedora klmbrt Linux - Newbie 10 01-26-2005 06:58 AM
pre-compiled CPU stress program for linux glock19 Linux - General 1 11-01-2001 12:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration