Download your favorite Linux distribution at LQ ISO.
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 05-31-2008, 09:12 AM   #1
LQ Newbie
Registered: May 2008
Posts: 5

Rep: Reputation: 0
Using gcc compiler on a .cpp file

In Redhat Linux 8, when using the gcc compilet on a .cpp file, I get the following message:

/tmp/ccDX8r6z.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

Does anybody know what this means? I can use gcc successfully on a .c file.
Old 05-31-2008, 09:51 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Firstly, you shouldn't really be using Red Hat Linux 8 now, because it's out of date and unsupported.

You should also really be using g++ to compile C++ programs, rather than gcc. You can however compile C++ programs with gcc if you link the C++ standard library (by including "-lstdc++" when you compile).

Last edited by Nylex; 05-31-2008 at 09:56 AM.
Old 05-31-2008, 10:25 AM   #3
LQ Newbie
Registered: May 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Re: Using gcc compiler on a .cpp file


Thank you very much for your help.



compiler, gcc

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
gcc compiler cannot find header file stdio.h / stdlib.h debianlam Programming 2 05-11-2008 02:29 PM
gcc compiler cannot find header file stdio.h / stdlib.h debianlam Programming 2 05-09-2008 03:33 PM
Compiling error with intel cpp compiler and open mp lucifer1987 Linux - Newbie 2 04-01-2008 11:49 AM
Now I have gcc/cpp/cpp, but still can't install sfingerh Linux - Software 2 07-30-2002 03:13 AM

All times are GMT -5. The time now is 03:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration