SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Mingw static lib supposedly broken in 2.24.0 release

Open iyenal opened this issue 3 years ago • 1 comments

Hi, Just want to inform that on my setup so far (WSL2, mingw) static librairies supplied in 2.24.0 release for mingw can't produce a working executable, both in 32-bit and 64-bit mode. No errors from gcc or g++, linking operational, but Windows throws a "This app can't run on your pc" error. Bad EXE on Wine too.

Swapping the 2.24.0 static lib with an older version (2.0.10) fixed the issue and produced a, well, executable/runnable EXE. I'm unfortunately not able to try to reproduce the issue on another system or conduct other trials for investigation, hence I create this issue in case someone else find himself in the same situation.

Other than that, thanks a lot for your work.

iyenal avatar Sep 15 '22 21:09 iyenal

In https://github.com/libsdl-org/SDL/issues/6139#issuecomment-1234325699, I have a very similar issue. Does compiling with -DSDL_MAIN_HANDLED and linking without -lSDL2main also produce a broken executable?

madebr avatar Sep 15 '22 21:09 madebr

I had the same issue using MinGW, swapping to the previous release (2.0.22) did fix it.

In #6139 (comment), I have a very similar issue. Does compiling with -DSDL_MAIN_HANDLED and linking without -lSDL2main also produce a broken executable?

Compiling with these options also works on my setup.

txmnx avatar Sep 24 '22 17:09 txmnx

Duplicate of #6139

slouken avatar Oct 04 '22 23:10 slouken