Hello,
The static SDL_mixer library seems to have built with a bunch of other static libraries. It looks like that in order to use the SDL_mixer functions I need to link SDL_mixer library and all those other libraries to my program.
The question is what are those other libraries?
I'm using CodeBench and I've added the following linker objects to my project:
Some libraries are still missing from the list because I get a lot of linker errors.
To link with SDL_mixer (from Legend of Edgar amigaos4 makefile):
-lSDL_mixer -lFLAC -lvorbisfile -lvorbis -logg -lsmpeg -lmodplug -lmikmod -lSDL -lpthread -lstdc++
If you're linking using g++ you can leave out the '-lstdc++'.
The order of the libraries is important as libraries that depend upon other libraries need to be specified before the libraries they depend upon (f.e. libvorbisfile depends upon libvorbis so -lvorbisfile is before -lvorbis above).
If you are unsure of the dependencies of a .a or .so libraries you can always look at dependency_libs field of the corresponding .la file.
The errors are gone! Thank you salass00!