New code to determine available music decoders gives - Mix_GetMusicDecoder and Mix_GetNumMusicDecoders errors. Temporarily commented out lines 63-79. The Mixer library is linked properly.
moved int i, n; to the top with the other
vars. Will not compile without //'s
// seems to be a compile problem with GetNumMusicDecoders and getMusicDecoder
// else
// {
// //Detect music decoders
// n = Mix_GetNumMusicDecoders();
// for (i = 0; i < n; ++i)
// {
// if (0 == strcmp(Mix_GetMusicDecoder(i), "MIKMOD"));
// music_decoder = MPLAY_MOD;
// }
// }
error
/home/dbrasher/dspaceinvadors/main.c:67: undefined reference to `Mix_GetNumMusicDecoders'
/home/dbrasher/dspaceinvadors/main.c:70: undefined reference to `Mix_GetMusicDecoder'
collect2: ld returned 1 exit status
make[2]: *** [DSI] Error 1
make[2]: Leaving directory `/home/dbrasher/dspaceinvadors'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dbrasher/dspaceinvadors'
make: *** [all] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
moved int i, n; to the top with the other
vars. Will not compile without //'s
// seems to be a compile problem with GetNumMusicDecoders and getMusicDecoder
// else
// {
// //Detect music decoders
// n = Mix_GetNumMusicDecoders();
// for (i = 0; i < n; ++i)
// {
// if (0 == strcmp(Mix_GetMusicDecoder(i), "MIKMOD"));
// music_decoder = MPLAY_MOD;
// }
// }
error
/home/dbrasher/dspaceinvadors/main.c:67: undefined reference to `Mix_GetNumMusicDecoders'
/home/dbrasher/dspaceinvadors/main.c:70: undefined reference to `Mix_GetMusicDecoder'
collect2: ld returned 1 exit status
make[2]: *** [DSI] Error 1
make[2]: Leaving directory `/home/dbrasher/dspaceinvadors'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dbrasher/dspaceinvadors'
make: *** [all] Error 2