OpenGL tutorials files for SDL w/ VC++

Hi,

I compiled many GL and GLUT projects before. But I couldn’t compile the VC+±Projects coming
w/ the OpenGL tutorial’s “intro” files (esp. fixed SDL tutorial sources/VC++ projects).

Could anyone help me to resolve these conflicting .libs:

(linking…)
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: _fprintf already defined in LIBCMTD.lib(fprintf.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in LIBCMTD.lib(isctype.obj)

Both removing libcmtd.lib and msvcrt.lib doesn’t help, because otherwise many standard
functions are missing (fopen, fprintf, exit…).

I tried to link w/ the usual SDL and GLUT files: SDL.lib, SDLmain.lib, glu32.lib,
glut32.lib, opengl32.lib. They don’t contain any of the conflicting functions/libs.

Boris

PS: It’s hard to get an idea of the things going on behind the scene if you always
programmed C/C++ w/ IDEs like VC++.

Could anyone help me to resolve these conflicting .libs:

(linking…)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCMTD.lib(crt0dat.obj)

Ack, I need to fix the project files.

Change the compile settings as described in the FAQ:
http://www.devolution.com/~slouken/SDL/faq/FAQ-Win32.html#WIN32_3b

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec