You have used the command line gcc test.c -o test I'm a newbie myself but thought it should be gcc -o test test.c I hope this helps one of us.