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

**URL:** <https://www.ruby-forum.com/t/miniruby-exe-fatal-error-lnk1169-one-or-more-multiply-defined-symbols-found/234367>\
**Category:** Ruby\
**Created:** [February 27, 2015, 7:02am UTC](https://www.ruby-forum.com/t/miniruby-exe-fatal-error-lnk1169-one-or-more-multiply-defined-symbols-found/234367 "2015-02-27T07:02:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [February 27, 2015, 7:02am UTC](https://www.ruby-forum.com/t/miniruby-exe-fatal-error-lnk1169-one-or-more-multiply-defined-symbols-found/234367/1 "2015-02-27T07:02:45Z")

</div>

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.
