Miniruby.exe : fatal error LNK1169: one or more multiply defined symbols found

how to fix this ?

Microsoft ® Program Maintenance Utility Version 6.00.8168.0

Copyright © Microsoft Corp 1988-1998. All rights reserved.

    CC = cl -nologo
    LD = cl -nologo
    LDSHARED = cl -nologo -LD
    CFLAGS = -MD -Zi -W2 -O2b2xg- -G6 -Zm600
    XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32

-I…/…/include
-I…/… -I…/…/missing
CPPFLAGS =
DLDFLAGS = -incremental:no -debug -opt:ref -opt:icf -dll
SOLIBS =
oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib imagehlp.lib
shlwapi.lib
linking miniruby.exe

LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in
MSVCRT.lib(MSVCRT.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in
MSVCRT.lib(MSVCRT.dll)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
MSVCRT.lib(cinitexe.obj)

LINK : warning LNK4098: defaultlib “MSVCRT” conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib “LIBC” conflicts with use of other
libs; use /NODEFAULTLIB:library

miniruby.exe : fatal error LNK1169: one or more multiply defined symbols
found
NMAKE : fatal error U1077: ‘cl’ : return code ‘0x2’
Stop.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs