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++.