Hi, I would like to know if my game compiled with x86_64-w64-mingw32-gcc works on other computers? This is my first game I developed.
I used a Windows 10 laptop using WSL2 Ubuntu 22.04.3 LTS (GNU/Linux 5.15.90.1-microsoft-standard-WSL2 x86_64).
In my game folder I have the three .dll files SDL2.dll, SDL2_image.dll, SDL2_mixer.dll.
The compiler switches I used:
-I…/SDL2-2.28.5/x86_64-w64-mingw32/include/SDL2/
-I…/SDL2_image-2.8.1/x86_64-w64-mingw32/include/SDL2/
-I…/SDL2_mixer-2.6.3/x86_64-w64-mingw32/include/SDL2/
-L…/SDL2-2.28.5/x86_64-w64-mingw32/lib/
-L…/SDL2_image-2.8.1/x86_64-w64-mingw32/lib/
-L…/SDL2_mixer-2.6.3/x86_64-w64-mingw32/lib/
-Wall -Wextra -Wunused -Werror -Wpedantic -Dmain=SDL_main
-lmingw32 -lSDL2main -lSDL2 -mwindows -lSDL2_image -lSDL2_mixer
I left the sound development part for last as the sound does not work natively inside WSL2 using VcXsrv