How to compile & run a c++ programme in editor gedit (red hat)

Please tell,with all required comands,how to compile & run a c++ programme in text editor "gedit" of red hat version of linux.List commands to be typed on terminal window.

Comments

  • : Please tell,with all required comands,how to compile & run a c++ programme in text editor "gedit" of red hat version of linux.List commands to be typed on terminal window.
    :

    The most basic way to compile is to run:
    gcc filename.cpp

    This will produce an executable file called a.out. To run this executable file, type:
    ./a.out

    Read the man page for gcc for additional options for gcc.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion