Hi!
I hope the LD34 is going well for everyone even though it probably isn’t!
I have an issue. I am coding my game in c with sdl2 on Linux, and I haven’t done that in while and it seems I can’t cross-compile it to windows. Well I can but the executable just doesn’t do anything. The code runs just fine on Linux itself. Here is the command line I use to cross-compile the thing:
i686-w64-mingw32-gcc code.c -o exe -lmingw32 -lm -L/mySDL2folder/i686-w64-mingw32/lib -I/mySDL2folder/i686-w64-mingw32/include -lSDL2main -lSDL2 -lSDL2_ttf -lSDL2_mixer -lSDL2_image -mwindows
So yea, I am using mingw64, the sdl2 dev files should be alright as I did successfully cross-compile with them in the past, although it was for Windows 7 and I am now on Windows 10. I can’t cross compile a simple hello world application either so I guess I’m missing one or two mingw32 flags maybe?
Does anyone have any idea?
Thanks and happy jamming to you!