issues linking SDL2_image using CMake & Visual Studio
I would get a segmentation fault from using
target_link_libraries()
on the libSDL2_image.a
file:
../../../~linux_LIB/SDL2-2.30.1/x86_64-w64-mingw32/lib/libSDL2.dll.a(SDL2_dll_d000613.o):(.idata$7+0x0): dangerous relocation: collect2: fatal error: ld terminated with signal 11 [Segmentation fault]