[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Book questions


On Mon, Apr 13, 2015 at 06:32:30PM +0000, Curt wrote:
> On 2015-04-13, Reco <recoverym4n@gmail.com> wrote:
> >
> > *ANSI* C - yes. For instance, gcc has this wonderful '-ansi' switch.
> > It's even possible to choose the exact version of ANSI C standard (i.e.
> > -std=c99).
> > *K&R* C - no. At least, gcc-4.7 has no switch for this that I'm
> > aware of.
> >
> -traditional ?
> But incompatibilities.
> https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Incompatibilities.html

There's a small matter with it:

$ gcc -traditional 1.c
gcc-4.7.real: error: GNU C no longer supports -traditional without -E

And 'gcc -E' basically equals to 'cpp', i.e. pre-processing c code, not

Sure, I can get a lot of free time, and build gcc-3 with gcc-4.7, but
surely that's not something one can expect from the beginner :)


Reply to: