PDA

View Full Version : c++ compiler


sniperweydz
March 17th, 2006, 07:33 PM
i need a c++ compiler for my ubuntu to do school projects....thx

John.Michael.Kane
March 17th, 2006, 07:56 PM
Removed.

rplantz
March 17th, 2006, 10:05 PM
What do you use at school? What does your instructor use?

As a retired CS Prof., I suggest that you try to match what is being used at your school as closely as you can. No two compilers do exactly the same thing to every C++ source. You can prevent possible hassles by using the same thing that your instructor uses.

jrib
March 17th, 2006, 10:19 PM
install the 'build-essential' package and use g++. Example: to compile hello.cc:

g++ hello.cc -o hello

then to run your program, assuming you are in the same directory you issued the above command:
./hello


rplantz makes a good point though.