#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    64
    Rep Power
    14

    how to run c++ program from linux ?


    how do i run c++ programs ?

    i am using linux. i did install the package for c++.

    do i go to the command line and type something to compile ?
    perl / cgi newbie
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,592
    Rep Power
    4207
    Try using g++ helloworld.C. This will produce an executable file called a.out, which you can then run by typing ./a.out. If you want the executable to be named, say testprog, you can type g++ -o testprog helloworld.C.Better still, you might want to read the man pages for gcc and g++ to learn about the other command line options. Hope this helps!
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Budapest
    Posts
    5
    Rep Power
    0

    and also Linux...


    and also, I think, you should learn Linux more deeply. if you are programmer, Advanced Linux Programming is good one. do not pay attention to "Advanced", in reality, it is very simple book. you can search for this book in the internet and download in PDF format.

IMN logo majestic logo threadwatch logo seochat tools logo