LinuxQuestions.org
Visit Jeremy's Blog.
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 05-31-2008, 10:12 AM   #1
mcgill
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, 10:51 AM   #2
Nylex
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 10:56 AM.
 
Old 05-31-2008, 11:25 AM   #3
mcgill
LQ Newbie
 
Registered: May 2008
Posts: 5

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

Nylex:

Thank you very much for your help.

mcgill
 
  


Reply

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


All times are GMT -5. The time now is 04:36 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration