Sorry... I'm dumb when it comes to crosscompiling 🤷

https://lemmy.dbzer0.com/post/15075811

Sorry... I'm dumb when it comes to crosscompiling 🤷 - Divisions by zero

I’ve used mingw in the past, the exe usually is 10x the size and wants the entire binary of any library used as well and first requires you to download the source windows version of the lib and link it. Meaning a small SDL2 project on Linux was I think 100kib while on windows it was 1mib + 2.5 mib

If you have WSL set up run

strip your.exe

It often rescues the size a fair bit

Doesn’t it work in Linux normally?
Oh sure, just figured this was all done under windows.
Nope I used a GitHub codespace since I didn’t have a C compiler on the windows installation I was stuck with.