Could someone guide me on what linker params I should use for SDL3 please as I'm not having a lot of luck so far.
I have a simple test application that creates a blank window and renderer, paints the window background and checks for quit or the escape key to exit. I figure if I'm going to try SDL then it may as well be SDL3. Converting the code from 2 to 3 was easy but I haven't managed to link the app yet.
For SDL2 I have something like this (please note this is mostly typed, not copy/pasted so excuse any potential typos):
Code:
gcc -noixemul src/main.o gg:usr/local/lib/sdl2.a gg:ppc-morphos/lib/libnix/libGL.a
That worked.
For SDL3 I got (from sdl3-config):
Code:
gcc -noixemul src/main.o gg:usr/local/lib/sdl3.a gg:ppc-morphos/lib/libnix/libGL.a gg:ppc-morphos/lib/libpthread.a gg:ppc-morphos/lib/libc.a gg:ppc-morphos/lib/libm.a
That spits out a bunch of errors, mostly about _ixbasearray.
I'm not entirely new to C by any means but my main job is java so I'm not desperately familiar with all the different types of libs there are any why, for example, there are libb32 folders and so on.
[ Edited by MartinW 18.05.2025 - 02:52 ]