It seems to be a conflict between msvcrt.lib & libcmt.lib
I have this problem a long time ago but I correct it (I dont remember how)
Any suggestions???
I include a piece of code for MS VC++ .NET
Thanks================================================================
------ Build started: Project: main, Configuration: Debug Win32 ------
Linking…
msvcrt.lib(ti_inst.obj) : error LNK2005: “private: __thiscall
type_info::type_info(class type_info const &)” (??0type_info@@AAE at ABV0@@Z)
already defined in LIBCMTD.lib(typinfo.obj)
msvcrt.lib(ti_inst.obj) : error LNK2005: “private: class type_info &
__thiscall type_info::operator=(class type_info const &)”
(??4type_info@@AAEAAV0 at ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: _exit already defined in
LIBCMTD.lib(crt0dat.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: _strncpy already defined in
LIBCMTD.lib(strncpy.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: _fclose already defined in
LIBCMTD.lib(fclose.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: __isctype already defined in
LIBCMTD.lib(isctype.obj)
LIBCMTD.lib(crt0init.obj) : warning LNK4098: defaultlib 'msvcrt.lib’
conflicts with use of other libs; use /NODEFAULTLIB:library
\Debug/main.exe : fatal error LNK1169: one or more multiply defined symbols
found
Build log was saved at
"file://c:\document???\c++\Gessoid
2\Debug\BuildLog.htm"
main - 7 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Gessoid 2.zip
Type: application/octet-stream
Size: 5351 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040128/d82dfc8f/attachment.obj
<- Chameleon -> wrote:
It seems to be a conflict between msvcrt.lib & libcmt.lib
I have this problem a long time ago but I correct it (I dont remember how)
Any suggestions???
I get so many damn errors from vc++ its not even funny. I know you can
prevent the warning
LIBCMTD.lib(crt0init.obj) : warning LNK4098: defaultlib 'msvcrt.lib’
conflicts with use of other libs; use /NODEFAULTLIB:library
by putting ‘msvcrt’ in Property->Linker->Input->Ignore Specific Library
I also have LIBCD in there but I don’t think that is causing the other
errors.
If you figure out how to fix those, let me know!
Tyler
I see now that:
In FAQ of SDL there is a question about my problem and the answer is try the
multithreaded C++ libraries!!!
I have activated the multithreaded libraries from the beginning…
I include the whole MS VC++ .NET project again.
Please take a look if you know an answer…
It seems to be a conflict between msvcrt.lib & libcmt.lib
I have this problem a long time ago but I correct it (I dont remember how)
Any suggestions???
I include a piece of code for MS VC++ .NET
Thanks
------ Build started: Project: main, Configuration: Debug Win32 ------
Linking…
msvcrt.lib(ti_inst.obj) : error LNK2005: “private: __thiscall
type_info::type_info(class type_info const &)” (??0type_info@@AAE at ABV0@@Z)
already defined in LIBCMTD.lib(typinfo.obj)
msvcrt.lib(ti_inst.obj) : error LNK2005: “private: class type_info &
__thiscall type_info::operator=(class type_info const &)”
(??4type_info@@AAEAAV0 at ABV0@@Z) already defined in
LIBCMTD.lib(typinfo.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: _exit already defined in
LIBCMTD.lib(crt0dat.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: _strncpy already defined in
LIBCMTD.lib(strncpy.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: _fclose already defined in
LIBCMTD.lib(fclose.obj)
msvcrt.lib(MSVCR71.dll) : error LNK2005: __isctype already defined in
LIBCMTD.lib(isctype.obj)
LIBCMTD.lib(crt0init.obj) : warning LNK4098: defaultlib 'msvcrt.lib’
conflicts with use of other libs; use /NODEFAULTLIB:library
\Debug/main.exe : fatal error LNK1169: one or more multiply defined
symbols
found
Build log was saved at
"file://c:\document???\c++\Gessoid
2\Debug\BuildLog.htm"
main - 7 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Gessoid 2.zip
Type: application/octet-stream
Size: 5351 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040128/1803dc2e/attachment.obj