Share your knowledge at the LQ Wiki.
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 12-09-2008, 11:39 PM   #1
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
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 with "g++ -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.


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:06 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