SDL_mixer and required static libraries

3 posts / 0 new
Last post
jap
jap's picture
Offline
Last seen: 9 months 2 weeks ago
Joined: 2011-06-04 05:53
SDL_mixer and required static libraries

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.

salass00
salass00's picture
Offline
Last seen: 6 months 2 weeks ago
Joined: 2011-02-03 11:27
To link with SDL_mixer (from

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.

jap
jap's picture
Offline
Last seen: 9 months 2 weeks ago
Joined: 2011-06-04 05:53
The errors are gone! Thank

The errors are gone! Thank you salass00!

Log in or register to post comments