How enable c99 mode in gcc with terminal

后端 未结 3 945
北海茫月
北海茫月 2021-02-07 22:04

I want to activate c99 mode in gcc compiler to i read in other post in this forum that -std should be equal to -std=c99 but i don\'t know how to set it

3条回答
  •  半阙折子戏
    2021-02-07 22:40

    You may try to use the -std=c99 flag.

    Try to complile like this:

    gcc -Wall -std=c99 -g myProgram.c
    

    Also note that -g is for debugging option(Thanks Alter Mann for pointing that).

提交回复
热议问题