Estou com um problema, de não conseguir rodar um código com sdl_image.
Coloco isto na linha de comando:
g++ %aqv%.cpp -o %aqv%.exe -m32 -I “C:\MinGW\include\SDL2” -L “C:\MinGW\lib\libSDL2_image.a” -lmingw32 -lSDL2main -lSDL2 -lSDL2_image
E o cmd me retorna isto:
c:/mingw/bin/…/lib/gcc/mingw32/6.3.0/…/…/…/libSDL2main.a(SDL_windows_main.o)
: In function main_getcmdline': /Users/valve/release/SDL/SDL2-2.0.14-source/foo-x86/../src/main/windows/SDL_wind ows_main.c:71: undefined reference to
SDL_main’
collect2.exe: error: ld returned 1 exit status