compile with -ansi -pedantic -Wall switches automatically with gcc

Posted by Jef Ty on Stack Overflow See other posts from Stack Overflow or by Jef Ty
Published on 2010-05-22T02:42:45Z Indexed on 2010/05/22 2:50 UTC
Read the original article Hit count: 319

Filed under:
|
|

We are required to compile C source codes using gcc in this manner:

gcc -ansi -pedantic -Wall program.c

I'm wondering how can I 'automate' this so when I enter:

gcc program.c

It will automatically compile with the 3 switches. Is this possible?

© Stack Overflow or respective owner

Related posts about linux

Related posts about gcc