chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] [ANN] sdl2 and sdl2-image 0.1


From: John Croisant
Subject: Re: [Chicken-users] [ANN] sdl2 and sdl2-image 0.1
Date: Sun, 20 Dec 2015 00:05:49 -0600
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 12/19/15 11:11 PM, Evan Hanson wrote:
FWIW, the sdl2 egg fails to build with gcc-4.6:

     In file included from sdl2-internals.c:14:0:
     lib/sdl2-internals/custom-functions.c: In function 
‘chickenSDL2_RotateSurface90’:
     lib/sdl2-internals/custom-functions.c:212:3: error: ‘for’ loop initial 
declarations are only allowed in C99 mode
     lib/sdl2-internals/custom-functions.c:212:3: note: use option -std=c99 or 
-std=gnu99 to compile your code
     lib/sdl2-internals/custom-functions.c:213:5: error: ‘for’ loop initial 
declarations are only allowed in C99 mode
     lib/sdl2-internals/custom-functions.c: In function 
‘chickenSDL2_FlipSurface’:
     lib/sdl2-internals/custom-functions.c:267:3: error: ‘for’ loop initial 
declarations are only allowed in C99 mode
     lib/sdl2-internals/custom-functions.c:268:5: error: ‘for’ loop initial 
declarations are only allowed in C99 mode

Building with gcc-5 instead worked fine. The sdl2-image project didn't
have this problem.
Thanks for this report. I have fixed the issue by changing the code to declare the variables before the for loop.

I will make a 0.1.1 bugfix release in a few days, after more people have had some time to maybe report some more bugs. :)

For future reference, here is the issue I filed on your behalf: https://gitlab.com/chicken-sdl2/chicken-sdl2/issues/29

Thanks again!

- John Croisant



reply via email to

[Prev in Thread] Current Thread [Next in Thread]