SDL_mixer and OGG on Windows

i’m taking a first crack at mixing oggvorbis and SDL_mixer
together on windows. it seems i’ve got everything ready,
except for 1 problem…

when linking i’m getting an unresolved external “_SDL_Error”.

i’m definitely linking the SDL.lib into the mix. but i
was under the impression the actual SDL_Error variable was
private to SDL, and i can’t find any references to it in
SDL_mixer. (those sneaky macros…)

i also noticed the music_ogg.c file was calling
"SDL_SetError" instead of “Mix_SetError”. i know they’re the
same things, but i just wondered if anyone cared about that
consistency.

anyways, a seemingly simple link problem, yet the solution
is eluding me. i’m pressing on, but hoping someone can beat
me to the solution :]

You mean SDL_mixer doesn’t already come with OGG support? I’d be
interested in gettings my hands on whatever you produce, please and
thank you!–

Olivier A. Dagenais - Software Architect and Developer

“Pete Shinners” wrote in message
news:9gp5oq$6kg$1 at ftp.lokigames.com

i’m taking a first crack at mixing oggvorbis and SDL_mixer
together on windows. it seems i’ve got everything ready,
except for 1 problem…

when linking i’m getting an unresolved external “_SDL_Error”.

i’m definitely linking the SDL.lib into the mix. but i
was under the impression the actual SDL_Error variable was
private to SDL, and i can’t find any references to it in
SDL_mixer. (those sneaky macros…)

i also noticed the music_ogg.c file was calling
"SDL_SetError" instead of “Mix_SetError”. i know they’re the
same things, but i just wondered if anyone cared about that
consistency.

anyways, a seemingly simple link problem, yet the solution
is eluding me. i’m pressing on, but hoping someone can beat
me to the solution :]

“Pete Shinners” wrote

when linking i’m getting an unresolved external “_SDL_Error”.

i’m definitely linking the SDL.lib into the mix. but i
was under the impression the actual SDL_Error variable was
private to SDL, and i can’t find any references to it in
SDL_mixer. (those sneaky macros…)

ok, my problem is that my SDL.dll does not have an
exported SDL_Error function. turns out SDL_Error is a
function, and not the actualy string error value (my bad).

in the oggvorbis sourcefile i just switched
"SDL_OutOfMemory()" calls into “SDL_SetError(“Out of Memory”)”

that got it happy for me, didn’t really investigate into
the SDL side of things, i noticed SDL_Error was not in the
SDL.def file, might be the problem?

anyways, the good news is that OGG support for SDL_mixer
is working really well on windows. happy day! stay tuned
for my latest and greatest win32-dependencies archive. i
was shocked to see many libs out of date. (i thought i was
on top of things, sheesh) now i’m just waiting on the
potential new SDL_ttf before releasing it.

You mean SDL_mixer doesn’t already come with OGG support? I’d be
interested in gettings my hands on whatever you produce, please and
thank you!

[icculus at gemini ~/projects/SDL_mixer]$ ./configure --help |grep ogg
–enable-music-ogg enable Ogg Vorbis music [default=yes]

–ryan.