@Capehill
I've made several tests:
- tried to downgrade from SDL2 2.32.10 to 2.0.20 with no success (the working SDL2 version that I had was 2.0.14)
- tried to recompile SDL2 2.32.10 on my native environment but I'm currently stuck to find GLES2 SDK
- tried either GCC 8.4, 11.2 and 11.5 with any success
- tried to remove stdc++ as you suggested but its required by SDL2_mixer:
7.Work:ETTU1/src> make -f Makefile.aos4
gcc -o Escape_d chunkyblitting.o enigmi.o escape.o findpath.o frasi.o freq.o game.o gels.o generic_video.o gfx.o gui.o header.o oggetti.o os_gui.o os_init.o os_locale.o os_video.o persone.o preferenze.o sound.o stanze.o astar.o astar_heap.o `pkg-config --libs SDL2_mixer` `pkg-config --libs sdl2` -lmodplug -lvorbis -lvorbisfile -logg -lauto -athread=native -lpthread
ld: warning: libstdc++.so, needed by /SDK/local/newlib/lib/libSDL2_mixer.so, not found (try using -rpath or -rpath-link)
/SDK/local/newlib/lib/libmodplug.so: undefined reference to `operator new(unsigned int)'
/SDK/local/newlib/lib/libSDL2.so: undefined reference to `__cxa_finalize'
/SDK/local/newlib/lib/libmodplug.so: undefined reference to `operator delete[](void*)'
/SDK/local/newlib/lib/libmodplug.so: undefined reference to `operator new[](unsigned int)'
/SDK/local/newlib/lib/libmodplug.so: undefined reference to `operator delete(void*, unsigned int)'
make: *** [Escape_d] Error 1
7.Work:ETTU1/src>
- tried to remove pkg_config with always undefined reference to cxi_finalize.
But, while I had the complete linker line, I tried to remove "-use-dynld" and it worked.
Unfortunately the executable obviously increased its size from 700 kB to 10 MB! This is not acceptable to me. I believe there is something different from the native environment that I use and the cross compile environment that everyone is using (If I have intended correctly). So I will try that way too even if I believe AmigaOS application should be compilable also on itself.
I will let you know if I was able to cross compile with dynamic link
EDIT: I've found the original version of the SDL2 that I used
Edited by Kirirur on 2026/6/8 17:22:10
Reason: Found old SDL revision