Hi I try to build libSDL2.a library from SDL2.dll. I create def file (def file is correct) from dll and then .a file: dlltool -d SDL2.def -l libSDL2.a Copy libSDL2.a to lib directory. So far so good. But when I try to build the simplest program : ... int main(){ SDL_Init(SDL_INIT_VIDEO); return 0; } with : gcc -lSDL2 a.c -o a.exe I got linker error: undefined reference to 'SDL_Init'. I know what this means and indeed, in the file libSDL2.a I have got function '__imp_SDL_Init' not 'SDL_init'. Somebody...