NAVIGATION BAR

HOME BUZZ Torrents

What?

we only provide free things.

Tuesday, July 14, 2009

How to compile c/c++ programs in linux

If you are using linux then you should be thinking that how do I complie my c++ programs.

Then Here is the answer to your question. Linux have a inbuilt compiler for c.

But if you need to compile c++ then you need g++ compiler.

To compile c++ program.

  1. Go to its directory in a terminal window
  2. Then type g++ <file> -o test
  3. It will run and execute your new c++ program.

No comments:

Post a Comment