[SDL] SDL-ttf: Problem linking in global variable TTF_Initialized

schiggl at web.de schiggl at web.de
Tue Sep 3 07:35:01 PDT 2002


sdl at libsdl.org schrieb am 03.09.02 14:16:57:
> I attempt to use TTF_Initialized (a global variable representing whether
> or not the SDL_TTF library is initialised or not, declared as a static int
> in SDL_ttf.c) in the constructor of my TTFont class, to determine whether
> or not the SDL_TTF library is initialised or not. I declare it as extern
> in the header for my TTFont class.


static variables can't be accessed with extern, you have to remove the keyword "static" and everything should work fine.



Lion Vollnhals
______________________________________________________________________________
WEB.DE MyPage - Ohne Computerkenntnisse in nur 5 Minuten online! Alles
inklusive! Kinderleicht!  http://www.das.ist.aber.ne.lustige.sache.ms/





More information about the SDL mailing list