[SDL] how to recompile SDL without DirectX enabled?

Sam Lantinga slouken at devolution.com
Fri Sep 6 03:25:01 PDT 2002


> Hello,

> 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




More information about the SDL mailing list