none
Problem linking: error LNK2005 symbol already defined RRS feed

  • Question

  • I am compiling two separate C++ files.  When I link them together, I get:

    support.lib(S0000000.obj) : error LNK2005: __MarkAllocaS already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __MallocaIsSizeInRange already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __freea already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: _fwide already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: _mbsinit already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: _wmemchr already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: _wmemcmp already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: _wmemcpy already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: _wmemmove already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: _wmemset already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __mm_cvtpi16_ps already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __mm_cvtpu16_ps already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __mm_cvtps_pi16 already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __mm_cvtpi8_ps already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __mm_cvtpu8_ps already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __mm_cvtps_pi8 already defined in t4030100.obj
    support.lib(S0000000.obj) : error LNK2005: __mm_cvtpi32x2_ps already defined in t4030100.obj

    My msc.cfg file is:

    /EHsc
    /Ob1
    /Od
    /GF
    /fp:strict
    /arch:IA32
    /nologo
    /W4
    /MD

    I am using the command line command: cl.exe

    Monday, November 4, 2013 1:53 AM

Answers

All replies