Re: how to check GCC default C standard

2017-09-27 Thread 慕 冬亮
On 09/26/2017 06:22 PM, Michael Stone wrote: > On Mon, Sep 25, 2017 at 05:10:32PM +, 慕 冬亮 wrote: >> how do I check the default C standard GCC uses? I check "gcc -v"(list >> below), but nothing is found. > > the default is to not be standards compliant. if you need a specific > standard you s

Re: how to check GCC default C standard

2017-09-26 Thread Michael Stone
On Mon, Sep 25, 2017 at 05:10:32PM +, 慕 冬亮 wrote: how do I check the default C standard GCC uses? I check "gcc -v"(list below), but nothing is found. the default is to not be standards compliant. if you need a specific standard you should specify it (e.g., -std=c11) gcc version 7.2.0 (D