[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: profiling embedded lua
- From: Sean Conner <sean@...>
- Date: Wed, 5 Oct 2011 16:56:33 -0400
It was thus said that the Great Geoff Leyland once stated:
> On 6/10/2011, at 4:18 AM, Thomas Buergel wrote:
>
> >> Error 1 error C2143: syntax error : missing ';' before 'type' ln 60 col1 in c_hook.c
> >
> > Visual Studio compilers don't support C99 (which allows declaring variables at an arbitrary place inside a block, not just at the beginning).
>
> I've fixed these (I hope), thanks for the report Oskar and the for the
> interpretation Thomas. Anyone know how to get gcc to complain about this?
> I tried -std=c89 and it just complained about the c++ comment near the end
> of the file (also fixed)
That's because C++ style comments are not allowed in C89. I think you
might want to try "gcc -pedantic -ansi" or "gcc -pedantic -std=c89".
-spc
- References:
- Re: profiling embedded lua, steve donovan
- Re: profiling embedded lua, Oskar Forsslund
- Re: profiling embedded lua, steve donovan
- Re: profiling embedded lua, Oskar Forsslund
- Re: profiling embedded lua, steve donovan
- Re: profiling embedded lua, Oskar Forsslund
- Re: profiling embedded lua, steve donovan
- Re: profiling embedded lua, Oskar Forsslund
- RE: profiling embedded lua, Thomas Buergel
- Re: profiling embedded lua, Geoff Leyland