Amrainder's Tech Notes
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
References :-
http://courses.cms.caltech.edu/cs11/material/c/mike/misc/compiling_c.html
http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html
No comments :
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
No comments :
Post a Comment