LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Just installed RedHat 9. Can any body help me to compile c++ (https://www.linuxquestions.org/questions/linux-newbie-8/just-installed-redhat-9-can-any-body-help-me-to-compile-c-689480/)

errorsunknownp 12-09-2008 11:39 PM

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.

Nylex 12-10-2008 12:47 AM

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.


All times are GMT -5. The time now is 03:41 AM.