VC2008 Runtime Library and Linker Errors

Hi people, I’m new to this forum and to using SDL (although this is far from my first experience with game design using C++).

So far I’m liking SDL quite a bit, but I’ve been having more problems than usual with linker errors in Visual Studio 2008 (particularly with errors lnk2019 and mostly lnk2001). It seems that many people have had issues with these two errors on the forums. I took the advice I’ve read and switched the runtime library to Multi-threaded Debug DLL (/MDd) instead of Multi-threaded DLL (/MD). This made the errors go away (altho they come back in release mode=/), but when I read the setup tutorial written by Lazy Foo it said to use /MD. So I’m wondering if using /MDd will cause problems in the future; if so, I’d like to make sure now before I tangle myself up too deeply. If anyone has feedback about this I’d be very happy to know!

If details about the particular linker errors I received would help then I’d be happy to provide those details =)

Thanks!

Flav

You have to change the build settings independently for debug and release
builds.

Debug build -> multithreadeaded debug DLL
Release build -> multithreaded DLL

Cheers,
PauloOn Wed, Dec 23, 2009 at 11:18 PM, Flavioli wrote:

Hi people, I’m new to this forum and to using SDL (although this is far
from my first experience with game design using C++).

So far I’m liking SDL quite a bit, but I’ve been having more problems than
usual with linker errors in Visual Studio 2008 (particularly with errors
lnk2019 and mostly lnk2001). It seems that many people have had issues with
these two errors on the forums. I took the advice I’ve read and switched the
runtime library to Multi-threaded Debug DLL (/MDd) instead of Multi-threaded
DLL (/MD). This made the errors go away (altho they come back in release
mode=/), but when I read the setup tutorial written by Lazy Foo it said to
use /MD. So I’m wondering if using /MDd will cause problems in the future;
if so, I’d like to make sure now before I tangle myself up too deeply. If
anyone has feedback about this I’d be very happy to know!

If details about the particular linker errors I received would help then
I’d be happy to provide those details =)

Thanks!

Flav


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org