Install problem

hi
i’m trying to install SDL but when complie i have this error. please, help
me

Compiling…
main.cpp
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: _fprintf already defined in
LIBCD.lib(fprintf.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_TEST.exe : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.

SDL_TEST.exe - 6 error(s), 1 warning(s)

marta_________________________________________________________________
Descubre el mayor cat?logo de coches de la Red en MSN Motor.
http://motor.msn.es/researchcentre/

Hi

Well, it seems like somethings are defined more than once… Have you set up
the project as it needs to be setup? Multithread DLL, give it acess to SDL’s
DLL’s and LIB’s etc?

Best regards
Daniel Liljeberg> ----- Original Message -----

From: martasxe@hotmail.com (marta martinez)
To:
Sent: Thursday, February 05, 2004 2:24 PM
Subject: [SDL] install problem

hi
i’m trying to install SDL but when complie i have this error. please, help
me

Compiling…
main.cpp
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: _fprintf already defined in
LIBCD.lib(fprintf.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_TEST.exe : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.

SDL_TEST.exe - 6 error(s), 1 warning(s)

marta


Descubre el mayor cat?logo de coches de la Red en MSN Motor.
http://motor.msn.es/researchcentre/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

hi
i’m trying to install SDL but when complie i have this error. please, help
me

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

You are probably linking objects which were compiled with different run-time
libraries (multi-threaded DLL for one project and debug single-threaded for
another, for example). Try to compile with the same run-time library option
of all projects.On Thursday 05 February 2004 16:24, marta martinez wrote:

  • Eugene ‘HMage’ Bujak

when using vc++ you have to switch code generation to multhithreaded dll

take a look at visualc.html, which comes with sdl.
i think there’s explained how it’s done.

Eugene ‘HMage’ Bujak wrote:>On Thursday 05 February 2004 16:24, marta martinez wrote:

hi
i’m trying to install SDL but when complie i have this error. please, help
me

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

You are probably linking objects which were compiled with different run-time
libraries (multi-threaded DLL for one project and debug single-threaded for
another, for example). Try to compile with the same run-time library option
of all projects.