LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2002, 07:05 PM   #1
dalraidia
Member
 
Registered: Dec 2002
Location: Tallahassee, Florida
Posts: 30

Rep: Reputation: 15
C++ compiler for RH8.0


Is gcc the C++ compiler for RH8.0 or is there something else which should be used instead???

John
 
Old 12-24-2002, 10:14 PM   #2
odat
LQ Newbie
 
Registered: May 2001
Posts: 29

Rep: Reputation: 15
short answer:
man gcc
:-_)
gcc/g++ is the GNU compiler for C and C++
it's $> gcc helloworld.c and $> g++ helloworld.cc
The FAQ of comp.lang.c often includes matters pertaining
to g++ use as well. This form is too short, so bye.
 
Old 12-27-2002, 09:38 PM   #3
Skywest
LQ Newbie
 
Registered: Dec 2002
Location: Alabama
Distribution: Red Hat v8.0
Posts: 1

Rep: Reputation: 0
C++ compiler for RH8.0

I have installed Red Hat 8.0 from CDs. I get the following from
$ cpp --version
cpp (GCC) 3.2 20020903

However, when I attempt to compile a sample program such as the following:

$cpp -o sum sum.cpp

I get this error message:

sum.cpp:2:22: iostream.h: No such file or directory
sum.cpp:3:20: stdlib.h: No such file or directory
sum.cpp:15:2: warning: no newline at end of file

So, after a very smooth standard install as a desktop, where are my header files located? Why weren't they installed? and finally,
how do I install them now?

I am not sure where to find them and how to install them.
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
i Got 1 Harddisk with Win XP & RH8 Dual Boot,will WinXP perform slower coz i got RH8? kublador Linux - General 4 08-27-2003 11:32 PM
i just installed a stock RH8 and heard that reiserfs is cool. can i use it in my RH8? kublador Linux - Software 16 08-06-2003 07:03 AM
RH8 + vt82c686b southbridge.. do i still need a via 4in1 driver in RH8? kublador Linux - Software 0 06-12-2003 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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