The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
September 22, 2019, 02:46:37 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Starbase Café (Moderator: Death 999)
| | |-+  SDL_Mixer Assistance
« previous next »
Pages: [1] Print
Author Topic: SDL_Mixer Assistance  (Read 3376 times)
abcminiuser
Zebranky food
*
Offline Offline

Posts: 10


I love YaBB 1G - SP1!


View Profile
SDL_Mixer Assistance
« on: June 28, 2005, 06:22:16 pm »

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 Offline

Gender: Male
Posts: 94



View Profile
Re: SDL_Mixer Assistance
« Reply #1 on: June 29, 2005, 08:18:37 am »

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 Offline

Posts: 10


I love YaBB 1G - SP1!


View Profile
Re: SDL_Mixer Assistance
« Reply #2 on: June 29, 2005, 08:25:25 am »

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] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!