none
error LNK2005: ___local_stdio_printf_options already defined in t0160400.obj RRS feed

  • Question

  • I am trying to compile, link and run a C (not C++) program with Visual Studio 2015 on Windows 7 on Intel x86/x87.

    I am getting these errors:

    t0160400.c
    LIBCMT.lib(default_local_stdio_options.obj) : error LNK2005: ___local_stdio_printf_options already defined in t0160400.obj
    LIBCMT.lib(default_local_stdio_options.obj) : error LNK2005: ___local_stdio_scanf_options already defined in t0160400.obj
    libvcruntime.lib(undname.obj) : error LNK2005: ___local_stdio_printf_options already defined in t0160400.obj
    libvcruntime.lib(undname.obj) : error LNK2005: __vsprintf_s_l already defined in t0160400.obj
    libvcruntime.lib(undname.obj) : error LNK2005: _sprintf_s already defined in t0160400.obj
    t0160400.exe : fatal error LNK1169: one or more multiply defined symbols found

    I have already tried adding

    /FORCE:MULTIPLE

    to the linker.

    Suggestions?

    Thursday, November 12, 2015 9:03 PM

Answers