LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-30-2010, 03:36 AM   #1
varalakshmi
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, 04:21 AM   #2
Nylex
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, 04:37 AM   #3
PehJota
Member
 
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.

Quote:
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).
 
  


Reply


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 01:36 PM
Devcpp jokar.mohsen Linux - Software 2 04-19-2010 09:15 AM
writing and compiling java program in fedora 12 kushwaha.naveen Linux - Newbie 2 03-21-2010 04:44 PM
program for writing/compiling C++ in Fedora klmbrt Linux - Newbie 10 01-26-2005 07:58 AM
pre-compiled CPU stress program for linux glock19 Linux - General 1 11-01-2001 01:28 AM


All times are GMT -5. The time now is 05:33 PM.

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