On 05/03/2015 10:55 AM, Colin Tuckley wrote: > Matthias, > > I've had a look at this and it seems to me it's a compiler bug. My > reasoning is as follows: > > Looking at the first error: > > tetris.c:(.text+0x43d): undefined reference to `refresh_screen' > > refresh_screen is indeed used, however it's defined in sdl.h which is > included into tetris.c by the include of ltris.h. > > However sdl.h contains the typical > > #ifndef SDL_H > #define SDL_H > > constructs, unfortunately before sdl.h gets included SDL.h (note the > upper-case) gets included by ltris.h. SDL.h has a similar construct: > > #ifndef _SDL_H > #define _SDL_H > > It would appear that the compiler is getting confused between the two. > > If you have more info that shows another reason then please let me know.
no, you are wrong. your code uses GNU inline semantics. Please see the porting document. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org