I am back with problems involving SDL2. I have my SDL program working great under linux. I want my friends to be able to see what I have so far, so I have been trying to compile my program for windows. I keep getting undefined reference errors. I am also trying to compile as a statically linked binary, so my friends don't have to deal with dependencies.
i686-w64-mingw32-g++ -Wall -static -I/usr/local/cross-tools/i686-w64-mingw32/include -lwinmm -lgdi32 -ldxguid -lmingw32 /usr/local/cross-tools/i686-w64-mingw32/lib/libSDL2main.a /usr/local/cross-tools/i686-w64-mingw32/lib/libSDL2.dll.a /usr/local/cross-tools/i686-w64-mingw32/lib/libSDL2_image.dll.a /usr/local/cross-tools/i686-w64-mingw32/lib/libSDL2_mixer.dll.a main.cpp Sprite.cpp Player.cpp -o Gougerry.exe
This is the command I am using to try and cross-compile. This command produces this:
I am running Arch Linux, with the mingw SDL libraries installed using make cross
This is a link to the entire project:
I greatly appreciate any help with this!