this post was submitted on 25 Feb 2024
414 points (97.3% liked)

linuxmemes

20785 readers
902 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Ziglin@lemmy.world 38 points 7 months ago (7 children)

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

[โ€“] oddsys@lemmy.world 3 points 6 months ago* (last edited 6 months ago) (1 children)

If you have WSL set up run

strip your.exe

It often reduces the size a fair bit

[โ€“] Ziglin@lemmy.world 1 points 6 months ago (1 children)

Doesn't it work in Linux normally?

[โ€“] oddsys@lemmy.world 1 points 6 months ago (1 children)

Oh sure, just figured this was all done under windows.

[โ€“] Ziglin@lemmy.world 1 points 6 months ago

Nope I used a GitHub codespace since I didn't have a C compiler on the windows installation I was stuck with.

load more comments (5 replies)