PDA

View Full Version : compiling c/cpp code on linux



velious
04-05-2004, 05:40 PM
I installed linux the other day and was writting a cpp program, but was not able to find a compiler. What is the name of the cpp compiler on red hat?

Unit
04-05-2004, 09:45 PM
gcc should do fine. or try g++

/usr/home/root> gcc foo.cpp
/usr/home/root> ./a.out

WelshFlyer
04-06-2004, 04:07 AM
Even better try Kdevelop, it's an integrated IDE with syntax colouring and much more.

(It will only run on KDE though)

WF.