Monthly Archive: February 2014

How to fix libSDL.a(xyz): undefined reference to `__imp_timeBeginPeriod' and friends 1

How to fix libSDL.a(xyz): undefined reference to `__imp_timeBeginPeriod' and friends

How to fix this error : /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x25): undefined reference to `__imp_timeBeginPeriod' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x2b): undefined reference to `__imp_timeGetTime' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x50): undefined reference to `__imp_timeGetTime' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0xbb): undefined reference to `__imp_timeBeginPeriod' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0xe1): undefined reference to `__imp_timeSetEvent' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x140): undefined reference...

Insert a SDL event programmatically 0

Insert a SDL event programmatically

SDL_Event user_event; user_event.type=SDL_USEREVENT; user_event.user.code=2; user_event.user.data1=NULL; user_event.user.data2=NULL; SDL_PushEvent(&user_event); ... in event loop switch (event.type) { case SDL_USEREVENT: if (event.user.code == MY_CUSTOM_DEFINE) { } break; (...) }

XShm.h: No such file or directory 1

XShm.h: No such file or directory

./src/video/x11/SDL_x11dyn.h:45:33: fatal error: X11/extensions/XShm.h: No such file or directory Solution : $> sudo apt-get install libxext-dev The following packages have unmet dependencies: libxext-dev : Depends: libxext6 (= 2:1.3.0-3build1) but 2:1.3.0-3ubuntu0.1 is to be installed...