LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-09-2008, 11:39 PM   #1
errorsunknownp
Member
 
Registered: Dec 2008
Location: Nepal
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Unhappy Just installed RedHat 9. Can any body help me to compile c++


Can any body help me to compile c++ in redhat 9. I'm new in Linux
and don't have compiling knowledge.
 
Old 12-10-2008, 12:47 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Out of interest, why did you install Red Hat 9? It's obsolete, so really you should get rid of it and install something newer.

As for compiling C++ programs, the standard compiler is g++, which is part of the GNU Compiler Collection. You can compile a program in stuff.cc with "g++ stuff.cc -o stuff". The -o specifies the output file and if it is not given, the executable will be called a.out. If you need to link other libraries, there are flags to do so.
 
  


Reply



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
installed wine trying to compile? Birdman666 Linux - Software 5 10-23-2008 11:54 PM
I have Redhat 3.0 factory installed on my Dell hardware. I have installed JDK 1.4.2 vcvinith Red Hat 2 04-18-2005 07:09 AM
how do I compile kernl with nothing installed xlioilx Linux - Newbie 4 02-22-2005 05:21 PM
how do I boot to Redhat? Installed xp on same drive after redhat mike9004 Red Hat 4 04-24-2004 04:08 PM
can i get redhat boot disk(without having redhat installed) doublefailure Linux - General 7 10-23-2002 12:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 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
Open Source Consulting | Domain Registration