Linking Error

Hey,

When I try to compile the example program, testgl, or any other program, I get some linking errors.

msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCMTD.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCMTD.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in LIBCMTD.lib(isctype.obj)
LIBCMTD.lib(crt0init.obj) : warning LNK4098: defaultlib “msvcrt.lib” conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/opengl2.exe : fatal error LNK1169: one or more multiply defined symbols found

What’d I forget to do?

Thanks,
Silverleaf

What’d I forget to do?

It’s in the FAQ:
http://www.libsdl.org/faq/FAQ-Win32.html#WIN32_3b

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software