Pages: [1]
|
|
|
Author
|
Topic: SDL_Mixer Assistance (Read 3992 times)
|
abcminiuser
Zebranky food
Offline
Posts: 10
I love YaBB 1G - SP1!
|
I'm creating my own game after being inspired by the Star Control port. I've decided to use the SDL libraries to keep things simple. So far ive managed to compile a lot of the libraries correctly, but i'm having trouble with the SDL miser library. I can compile it fine with VC++.net, but when I try to use the .lib file in my project I get a LOT of "unresolved external symbols". Can anyone help?
Compiler output shown below. - Dean
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_PlaySome referenced in function _music_mixer SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _VC_WriteBytes referenced in function _music_mixer SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_detect referenced in function _open_music SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_Init referenced in function _open_music SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _MikMod_strerror referenced in function _open_music SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _MikMod_errno SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _MikMod_Init referenced in function _open_music SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _MikMod_RegisterAllLoaders referenced in function _open_music SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _MikMod_RegisterAllDrivers referenced in function _open_music SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_reverb SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_pansep SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_sndfxvolume SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_musicvolume SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_volume SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_device SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_mixfreq SDL_Mixer.lib(music.obj) : error LNK2001: unresolved external symbol _md_mode SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_Load referenced in function _Mix_LoadMUS SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_Error referenced in function _Mix_LoadMUS SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_LoadSong referenced in function _Mix_LoadMUS SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_error referenced in function _Mix_LoadMUS SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_loadsong referenced in function _Mix_LoadMUS SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_FreeSong referenced in function _Mix_FreeMusic SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_freesong referenced in function _Mix_FreeMusic SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_Free referenced in function _Mix_FreeMusic SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_Start referenced in function _music_internal_play SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_start referenced in function _music_internal_play SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_Start referenced in function _music_internal_play SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_SetPosition referenced in function _music_internal_position SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_SetVolume referenced in function _music_internal_volume SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_setvolume referenced in function _music_internal_volume SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_SetVolume referenced in function _music_internal_volume SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_Stop referenced in function _music_internal_halt SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_stop referenced in function _music_internal_halt SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_Stop referenced in function _music_internal_halt SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Timidity_Active referenced in function _music_internal_playing SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _native_midi_active referenced in function _music_internal_playing SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_Active referenced in function _music_internal_playing SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_SetSynchroValue referenced in function _Mix_SetSynchroValue SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _Player_GetSynchroValue referenced in function _Mix_GetSynchroValue SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _MikMod_UnregisterAllDrivers referenced in function _close_music SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _MikMod_UnregisterAllLoaders referenced in function _close_music SDL_Mixer.lib(music.obj) : error LNK2019: unresolved external symbol _MikMod_Exit referenced in function _close_music Debug/Star Control 2.5.exe : fatal error LNK1120: 43 unresolved externals
|
|
« Last Edit: June 28, 2005, 06:23:21 pm by abcminiuser »
|
Logged
|
|
|
|
fossil
Core Team
Frungy champion
Offline
Gender:
Posts: 94
|
This is only a guess, but it appears you are somehow using a version of SDL_mixer library that does not have mikmod and Timidity compiled in. Make sure you download and install the official 1.2.6 release from http://www.libsdl.org/projects/SDL_mixer/. Get the devel version too.
You may also have put the reference to SDL_mixer.lib in the wrong place in you project. Make sure it's in 'libraries' section.
|
|
|
Logged
|
|
|
|
abcminiuser
Zebranky food
Offline
Posts: 10
I love YaBB 1G - SP1!
|
Bugger! Just realised I downloaded the pure source version instead of the developer version. Now it works great. Kudos - you guys seem to be very on-the-ball!
- Dean
|
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|