HELP compiling SDL2-gfx

Would anyone so kind as to help me to compile SDL2_gfx???
I?m using CodeBlocks with mingw. First thing I did was importing the VC project to CB (is this the right way?) This way I could build the static library, but when I try to compile the dinamic library… i get errors.

C:\MinGW\lib\libSDL2.a(SDL_systimer.o) In function timeSetPeriod': ..\src\timer\windows\SDL_systimer.c undefined reference to_imp__timeBeginPeriod at 4’

…followed of more undefine references.

I couldn’t find too much information neither about the library compilation nor about the errors.

Thanks in advance.

The compile error below is in SDL2, not SDL2_gfx.

There was a thread about SDL2_gfx and CodeBlocks on 2/21/14 which
resulted in this “resolution”:
define DLL_EXPORT for when compiling SDL2_gfx (i.e. creating the DLL)
define LIBSDL2_GFX_DLL_IMPORT when compiling your app (i.e. linking to
the DLL)On 4/1/2014 6:19 PM, onirico wrote:

Would anyone so kind as to help me to compile SDL2_gfx???
I?m using CodeBlocks with mingw. First thing I did was importing the
VC project to CB (is this the right way?) This way I could build the
static library, but when I try to compile the dinamic library… i get
errors.

C:\MinGW\lib\libSDL2.a(SDL_systimer.o) In function timeSetPeriod': ..\src\timer\windows\SDL_systimer.c undefined reference to_imp__timeBeginPeriod at 4’

…followed of more undefine references.

I couldn’t find too much information neither about the library
compilation nor about the errors.

Thanks in advance.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org