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.

Colin

-- 
Colin Tuckley      |  +44(0)1223 830814  |  PGP/GnuPG Key Id
Debian Developer   |  +44(0)7799 143369  |     0x38C9D903


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to