Original Post
I''m using SDL and SDL_Net with MSVC++ 6.0. I''ve already set my project to use Multi-threaded DLL, and added SDLmain and SDL (as well as SDL_Net) libraries to my project, but I still get the following errors:
IBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCRT.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSVCRT.dll)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
GlitchServ.exe : fatal error LNK1169: one or more multiply defined symbols found
I tried doing nodefaultlib on those two libraries, but that just gives me even more errors (I''m also using Lua and Winsock, and I think that''s about the extent of my external resources). I read the FAQ on SDL and it said that the Multithreaded DLL option would fix this problem, but it doesn''t...any help would be appreciated.