The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
HELP compiling SDL2-gfx...
Andreas Schiffler
Guest

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:

Quote:
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@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.


Quote:
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org