Custom Search

Tuesday, December 7, 2010

howto gcc compiler

#include

int
main (void)
{
printf ("Hello, world!\n");
return 0;
}

save this in a file called 'test.c'

#gcc test.c -o test

This command will create an executable file 'test'

#./test

This command will run the executable file

No comments:

Post a Comment