I would like my SDL-program never to use DirectX even if it is available.
I guess i have to recompile SDL so that it ignores the dx5 calls. I thought
removing the ENABLE_DIRECTX precompiler directive would be enough, but it
doesn’t seem so. I have the following output at link time (OS = Win2K, IDE =
MSVC6.0) :
--------------------Configuration: SDL - Win32 Release--------------------
Linking…
SDL_dx5audio.obj : error LNK2005: _DX5_SoundFocus already defined in
SDL_dibvideo.obj
SDL_dx5audio.obj : warning LNK4006: _DX5_SoundFocus already defined in
SDL_dibvideo.obj; second definition ignored
Creating library Release/SDL.lib and object Release/SDL.exp
Release/SDL.dll : fatal error LNK1169: one or more multiply defined symbols
found
Error executing link.exe.
SDL.dll - 2 error(s), 1 warning(s)
I haven’t been able to find any doc on recompiling SDL wihtout dx, any idea
to do so?
Thx
I would like my SDL-program never to use DirectX even if it is available.
I guess i have to recompile SDL so that it ignores the dx5 calls. I thought
removing the ENABLE_DIRECTX precompiler directive would be enough, but it
doesn’t seem so. I have the following output at link time (OS = Win2K, IDE =
MSVC6.0) :
--------------------Configuration: SDL - Win32 Release--------------------
Linking…
SDL_dx5audio.obj : error LNK2005: _DX5_SoundFocus already defined in
SDL_dibvideo.obj
Once you remove the ENABLE_DIRECTX directive, you must also remove the
SDL_dx5* source from the project. After that it should link properly.
I haven’t tried this in a while, so let me know if there are problems.
See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment
SDL_dx5audio.obj : error LNK2005: _DX5_SoundFocus already defined in
SDL_dibvideo.obj
Once you remove the ENABLE_DIRECTX directive, you must also remove the
SDL_dx5* source from the project. After that it should link properly.
I haven’t tried this in a while, so let me know if there are problems.
See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment