SDL_mixer problems with OSX and PB?

Here is the error I get when trying to compile with sdl_mixer.h
Undefined symbols _Mix_CloseAudio … many more to list
I don’t know why this is but I #include “sdl_mixer.h” in my project and
this happens? Also if I add the file to it no different?

Here is the error I get when trying to compile with sdl_mixer.h
Undefined symbols _Mix_CloseAudio … many more to list
I don’t know why this is but I #include “sdl_mixer.h” in my project and
this happens? Also if I add the file to it no different?

Sounds like a linker error to me - that is, the compile goes fine, but when
the compiler attempts to put all the pieces together, it’s unable to resolve
the symbols for the mixer.

You need to tell the compiler to link with the SDL_mixer library, which is
where these symbols are defined. Including the header file just tells the
compiler what type of ‘thing’ you’re talking about when you refer to, e.g.,
Mix_OpenAudio() and it stores it as a placeholder; the linker then works out
where it is and replaces it with the address in the library.

Or something like that. I’m sure somebody will correct me :-)On Thu, 17 Jan 2002, Mars_999 wrote:

Mike.