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.

The compile error below is in SDL2, not SDL2_gfx.

resulted in this “resolution”:
define DLL_EXPORT for when compiling SDL2_gfx (i.e. creating the DLL)
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