I am on windows 10 using a x86 version of mingw to statically link sdl and sdl_image.
sdl has linked with no problems, but when I add sdl_image (which also compiles with no errors), the resulting executable creates a popup saying the app is not compatible with my pc. I am sure I am using the x86 version of all of my dependencies including sdl_image.
Here is the command I am using to compile:
g++ -Iinclude -Ibuild/include -Ibuild/include-config- -Iinclude/headers -Lbuild -o Main src/*.cpp -static -lmingw32 -mwindows -lSDL2main -lSDL2 -lm -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion -luuid -ladvapi32 -lsetupapi -lshell32 -ldinput8 -lSDL2_image -lSDL2_ttf -lusp10 -lgdi32 -lrpcrt4
Compiling results in no errors from mingw.