first program

Will Elmes welmes@ptd.net
Tue Nov 23 05:47:00 GMT 1999


this is my first attempt at compiling and running a program under linux.
this doesn't make sense but when i attempt to run it absolutely nothing
happens.

#include <iostream.h>
int main(void)
    {
    cout << "hello!!";
    }

then to compile:
    $g++ -Wall -c hello.cpp

then to link(i think i need to do this?>?):
    $g++ hello.o -o hello

then to execute:
    $hello

i get nothing.....any help for a newbie would be appreciated.

thanks!!

welmes@ptd.net








More information about the Gcc-help mailing list