Static sdl.lib

Hello sdl-users,
I recompiled libsdl under win32 with vc7 as a static library. Works
fine, but when i try to link it to my program, i get some missing
external symbols. Seems to be directx stuff. Does someone knows wich
additional libraries i need to link ?
(used the cvs-snapshot 01.08 for libdsl and the cvs versions of
sdl_mixer and sdl_image)

Here the linker output:

Verkn?pfen…
Bibliothek …/gravytrisd.lib und Objekt …/gravytrisd.exp wird
erstellt
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: Standardbibliothek
’msvcrt.lib’ steht in Konflikt mit anderen Bibliotheken;
/NODEFAULT:Bibliothek verwenden
sdld.lib(SDL_systimer.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__timeGetTime at 0, verwiesen in Funktion _SDL_StartTicks
sdld.lib(SDL_systimer.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__timeBeginPeriod at 4, verwiesen in Funktion _SDL_StartTicks
sdld.lib(SDL_systimer.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__timeSetEvent at 20, verwiesen in Funktion _SDL_SYS_TimerInit
sdld.lib(SDL_systimer.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__timeEndPeriod at 4, verwiesen in Funktion _SDL_SYS_TimerQuit
sdld.lib(SDL_systimer.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__timeKillEvent at 4, verwiesen in Funktion _SDL_SYS_TimerQuit
sdld.lib(SDL_syscdrom.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__mciGetErrorStringA at 12, verwiesen in Funktion
_SDL_SYS_CDioctl
sdld.lib(SDL_syscdrom.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__mciSendCommandA at 16, verwiesen in Funktion _SDL_SYS_CDioctl
sdld.lib(SDL_mmjoystick.obj) : error LNK2019: Nicht aufgeloestes
externes Symbol __imp__joyGetDevCapsA at 12, verwiesen in Funktion
_SDL_SYS_JoystickInit
sdld.lib(SDL_mmjoystick.obj) : error LNK2019: Nicht aufgeloestes
externes Symbol __imp__joyGetPosEx at 8, verwiesen in Funktion
_SDL_SYS_JoystickInit
sdld.lib(SDL_mmjoystick.obj) : error LNK2019: Nicht aufgeloestes
externes Symbol __imp__joyGetNumDevs at 0, verwiesen in Funktion
_SDL_SYS_JoystickInit
sdld.lib(SDL_dibaudio.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__waveOutWrite at 12, verwiesen in Funktion _DIB_PlayAudio
sdld.lib(SDL_dibaudio.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__waveOutUnprepareHeader at 12, verwiesen in Funktion
_DIB_CloseAudio
sdld.lib(SDL_dibaudio.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__waveOutClose at 4, verwiesen in Funktion _DIB_CloseAudio
sdld.lib(SDL_dibaudio.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__waveOutPrepareHeader at 12, verwiesen in Funktion
_DIB_OpenAudio
sdld.lib(SDL_dibaudio.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__waveOutOpen at 24, verwiesen in Funktion _DIB_OpenAudio
sdld.lib(SDL_dibaudio.obj) : error LNK2019: Nicht aufgeloestes externes
Symbol __imp__waveOutGetErrorTextA at 12, verwiesen in Funktion _SetMMerror
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_POV
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_Slider
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_RzAxis
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_RyAxis
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_RxAxis
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_ZAxis
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_YAxis
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_XAxis
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_Key
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _IID_IDirectDrawSurface3
sdld.lib(SDL_dx5yuv.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _IID_IDirectDrawSurface3
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _IID_IDirectDraw2
sdld.lib(SDL_dx5video.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _IID_IDirectDrawGammaControl
sdld.lib(SDL_dx5events.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_SysMouse
sdld.lib(SDL_dx5events.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _GUID_SysKeyboard
sdld.lib(SDL_dx5events.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _IID_IDirectInputDevice2A
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiStreamOut at 12, verwiesen in
Funktion _BlockOut
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiOutPrepareHeader at 12, verwiesen
in Funktion _BlockOut
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiOutUnprepareHeader at 12, verwiesen
in Funktion _BlockOut
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiStreamClose at 4, verwiesen in
Funktion _native_midi_detect
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiStreamOpen at 24, verwiesen in
Funktion _native_midi_detect
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiStreamStop at 4, verwiesen in
Funktion _native_midi_freesong
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiStreamRestart at 4, verwiesen in
Funktion _native_midi_start
native_midid.lib(native_midi_win32.obj) : error LNK2019: Nicht
aufgeloestes externes Symbol __imp__midiStreamProperty at 12, verwiesen in
Funktion _native_midi_start
…/gravytrisd.exe : fatal error LNK1120: 39 unaufgeloeste externe
Verweise

Hello sdl-users,
I recompiled libsdl under win32 with vc7 as a static library. Works
fine, but when i try to link it to my program, i get some missing
external symbols. Seems to be directx stuff. Does someone knows wich
additional libraries i need to link ?
(used the cvs-snapshot 01.08 for libdsl and the cvs versions of
sdl_mixer and sdl_image)

You need to include winmm and dxguid in your link libraries.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment