User Activity

  • Posted a comment on discussion Help on MinGW-w64 - for 32 and 64 bit Windows

    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...

View All

Personal Data

Username:
maciejmada
Joined:
2020-03-25 13:38:52

Projects

  • No projects to display.

Personal Tools