bobti
29th October 2006, 05:54 PM
Hi,
I have written a simple program in C using gedit.
I compiled it using GCC successfully and it creates a binary.
If I try to run the binary in a terminal I get nothing i.e. its like the program just starts and instantly ends.
Here is my simple code.
#include <stdio.h> ;
int main ( void ) {
printf ("Hello\n") ;
return 0 ;
}
I'm using FC5 that has just been fresh installed.
Any ideas??
I have written a simple program in C using gedit.
I compiled it using GCC successfully and it creates a binary.
If I try to run the binary in a terminal I get nothing i.e. its like the program just starts and instantly ends.
Here is my simple code.
#include <stdio.h> ;
int main ( void ) {
printf ("Hello\n") ;
return 0 ;
}
I'm using FC5 that has just been fresh installed.
Any ideas??