running c++ prog in linux

Discussion in 'Open Source' started by shivi4, Jun 28, 2006.

Thread Status:
Not open for further replies.
  1. shivi4

    shivi4 New Member

    Joined:
    Oct 4, 2004
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    0
    i have ubuntu 5.10 with gcc /g++ install

    i also have ide for c++ in linux whee i have run c++ progs

    but problem is do not know how to run c++ programs
    in the terminal window
    plaese give all the steps to run .cpp prog

    also tell the procedure for running c++progs in red hat too
     
  2. kalpik

    kalpik In Pursuit of "Happyness"

    Joined:
    May 18, 2005
    Messages:
    3,002
    Likes Received:
    15
    Trophy Points:
    0
    Location:
    New Delhi
    What IDE do u use?
     
  3. Satissh S

    Satissh S New Member

    Joined:
    Mar 23, 2005
    Messages:
    692
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Chennai , India
    hmm.. compile it using,
    1. g++ -o program program.cpp
    Make it executable,
    2. chmod 700 program
    run it,
    3. ./program
    Anjuta is a nice GNOME IDE with many features, comparable is KDE's kdevelop for developing c++ apps.
     
  4. JGuru

    JGuru Well-Known Member

    Joined:
    Dec 25, 2005
    Messages:
    1,705
    Likes Received:
    32
    Trophy Points:
    48
    Location:
    Space-time continuum
    Last edited: Jul 1, 2006
  5. praka123

    praka123 left this forum longback

    Joined:
    Sep 7, 2005
    Messages:
    7,513
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    -
    Anjuta is also a good IDE for C/C++ compiling.
     
Thread Status:
Not open for further replies.

Share This Page