Friday, January 2, 2015

Compiling a C program on Linux

Assuming you want to compile a file "test.c" and you want the name of the binary to be "hello"
> gcc -Wall -Wstrict-prototypes -ansi -pedantic test.c -o hello

No comments :

Post a Comment