simple question

RPathiyal@aol.com RPathiyal@aol.com
Tue Aug 8 10:46:00 GMT 2000


hi,

i'm new to GCC and its capabilities.  i recently configured, built and installed GCC 2.95.2 for a redhat linux 6.1 machine with no problems.  i created a simple hello.c file to test the compiler.  

#inlucde <stdio.h>
int main ()
{   printf("\nHello World\n");
    return 0;
}

i then typed gcc hello.c at the linux prompt and the computer paused for a second and then another linux prompt came up.  my question is, does this mean that the file compiled properly?  also, is there any way for me to see the output (eg. see "Hello World" printed to the screen)?  or does the GCC only compile files and not run them?  or do i need to add an option to the gcc command in order to get an output?  please help me.  i dont know the material very well enough to understand the documentation all that well.  also, please email any responses to me at this address (RPathiyal@aol.com) as i am not on the mailing list.  Thanks in advance for any help.

sanjay pathiyal




More information about the Gcc-help mailing list