Help

Started by
14 comments, last by braclayrab 19 years, 7 months ago
From the SDL FAQ:
Quote:
Q: How do I use SDL with Visual C++?
A: Read the file "VisualC.html" included with both the SDL Visual C++ development archive, and the SDL source archive.


http://www.cis.gsu.edu/~shong/oojokes/
Advertisement
More errors. I give up.

--------------------Configuration: sdl - Win32 Debug--------------------
Linking...
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in LIBCD.lib(isctype.obj)
LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/sdl.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
I'm sorry if I'm missunderstanding you, but have you looked at the VisulC.html file the FAQ points to?
http://www.cis.gsu.edu/~shong/oojokes/
In VC++ 6.0 I believe the code generation options are under C++ in the project settings dialog. Setting the runtime library here to multithreaded dll should get things working.

The other way to fix this is to get it to ignore msvcrt.lib. You need to put 'msvcrt.lib' in the ignore libraries box under the linker options in the project settings dialog (names may be slightly different just hunt around in the linker options and you'll find it).
Danne, I tried the visualc.html help file, i couldn't do what monder is telling me how to do, so I should be good now. I'll try it out later tongiht, i'm a little busy right now

thanks everyone
Monder, you're my savior, I haven't been able to figure out these type of errors for over a day and it was seriously frustrating.

Thanks!

This topic is closed to new replies.

Advertisement