#188 Link error problem comes up, how to get it out?

open
nobody
None
5
2006-04-24
2006-04-24
falconchen
No

Hi Admin:

Thank you very much for your any advice.
I get link problem when I compile vsrip project.
Here is the link error message.

VSRip error LNK2005: ___xc_a already defined in
msvcrtd.lib(cinitexe.obj)
VSRip error LNK2005: ___xc_z already defined in
msvcrtd.lib(cinitexe.obj)
VSRip error LNK2005: ___xi_a already defined in
msvcrtd.lib(cinitexe.obj)
VSRip error LNK2005: ___xi_z already defined in
msvcrtd.lib(cinitexe.obj)
VSRip error LNK2005: __amsg_exit already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: __c_exit already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: __cexit already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: __exit already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: __setmbcp already defined in
LIBCMTD.lib(mbctype.obj)
VSRip error LNK2005: __stricmp already defined in
LIBCMTD.lib(stricmp.obj)
VSRip error LNK2005: __XcptFilter already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: _exit already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: _free already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: _isalpha already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: _malloc already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: _strcpy already defined in
msvcrtd.lib(MSVCR71D.dll)
VSRip error LNK2005: _strncpy already defined in
LIBCMTD.lib(strncpy.obj)

How can I get the problems out?
Could you help me?

Thanks again.

Discussion

  • falconchen
    falconchen
    2006-04-24

    Logged In: YES
    user_id=733736

    I compile the project using MSVC 2003, and I have tried to
    Ignore msvcrtd.lib, however it doesn't work.

     
  • YuChuan zhao
    YuChuan zhao
    2008-08-25

    Logged In: YES
    user_id=2189700
    Originator: NO

    you can use disable link to msvcrtd.lib
    /NODEFAULTLIB:"msvcrtd.lib" this setup