[Ecls-list] Compiling in Windows

Ben benbelly at gmail.com
Fri Aug 4 13:03:54 UTC 2006


Hi all.  I just started using ECL because I read I can use it in MS
Windows.  I have Visual Studio .NET 2003 and I am getting the
following errors from nmake during linking:

---------------------------------------------------------------------------------------------------------------
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:ecl_min.exe
/debug
/nodefaultlib:libcmt
/nodefaultlib:libcmtd
/nodefaultlib:libc
/nodefaultlib:libd
eclgc.lib
eclgmp.lib
user32.lib
ws2_32.lib
cinit.obj
c\all_symbols.obj
eclmin.lib
libcd.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVC
R71.dll)
libcd.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSV
CR71.dll)
libcd.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MS
VCR71.dll)
libcd.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in MSVCRT.lib(M
SVCR71.dll)
libcd.lib(dbgheap.obj) : error LNK2005: _malloc already defined in MSVCRT.lib(MS
VCR71.dll)
libcd.lib(dbgheap.obj) : error LNK2005: _realloc already defined in MSVCRT.lib(M
SVCR71.dll)
libcd.lib(dbgheap.obj) : error LNK2005: _free already defined in MSVCRT.lib(MSVC
R71.dll)
libcd.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(c
initexe.obj)
libcd.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(c
initexe.obj)
libcd.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(c
initexe.obj)
libcd.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(c
initexe.obj)
libcd.lib(winsig.obj) : error LNK2005: _signal already defined in MSVCRT.lib(MSV
CR71.dll)
libcd.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRT.
lib(MSVCR71.dll)
libcd.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRT.lib(MSV
CR71.dll)
libcd.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRT.lib(MS
VCR71.dll); second definition ignored
libcd.lib(crt0dat.obj) : warning LNK4006: __exit already defined in MSVCRT.lib(M
SVCR71.dll); second definition ignored
libcd.lib(crt0dat.obj) : warning LNK4006: __cexit already defined in MSVCRT.lib(
MSVCR71.dll); second definition ignored
libcd.lib(crt0dat.obj) : warning LNK4006: __c_exit already defined in MSVCRT.lib
(MSVCR71.dll); second definition ignored
libcd.lib(dbgheap.obj) : warning LNK4006: _malloc already defined in MSVCRT.lib(
MSVCR71.dll); second definition ignored
libcd.lib(dbgheap.obj) : warning LNK4006: _realloc already defined in MSVCRT.lib
(MSVCR71.dll); second definition ignored
libcd.lib(dbgheap.obj) : warning LNK4006: _free already defined in MSVCRT.lib(MS
VCR71.dll); second definition ignored
libcd.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.lib
(cinitexe.obj); second definition ignored
libcd.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.lib
(cinitexe.obj); second definition ignored
libcd.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.lib
(cinitexe.obj); second definition ignored
libcd.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.lib
(cinitexe.obj); second definition ignored
libcd.lib(winsig.obj) : warning LNK4006: _signal already defined in MSVCRT.lib(M
SVCR71.dll); second definition ignored
libcd.lib(winxfltr.obj) : warning LNK4006: __XcptFilter already defined in MSVCR
T.lib(MSVCR71.dll); second definition ignored
libcd.lib(fflush.obj) : warning LNK4006: _fflush already defined in MSVCRT.lib(M
SVCR71.dll); second definition ignored
   Creating library ecl_min.lib and object ecl_min.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; us
e /NODEFAULTLIB:library
MSVCRT.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcd.lib' conflicts wit
h use of other libs; use /NODEFAULTLIB:library
ecl_min.exe : fatal error LNK1169: one or more multiply defined symbols found
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
-------------------------------------------------------------------------------------------------------------

I added /nodefaultlib:libcd, but then I get:
-------------------------------------------------------------------------------------------------------------
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

cmp asdf sockets clx rt defsystem
(cons :wants-defsystem (cons :wants-rt (cons :wants-clx (cons :wants-sockets (co
ns :wants-asdf (cons :wants-cmp (cons :wants-dlopen *features*)))))))
        if not exist lsp mkdir lsp
        c\cut "@ecldir@" "D:/Software/ECL/lib/ecl"  "@SHORT_SITE_NAME@" ""  "@LO
NG_SITE_NAME@" ""  "@PACKAGE_VERSION@" "0.9h"  "@ARCHITECTURE@" "PENTIUM4"  "@MA
CHINE_INSTANCE@" "localhost"  "@MACHINE_VERSION@" ""  "@SOFTWARE_TYPE@" "NT"  "@
SOFTWARE_VERSION@" "5.0"  "@thehost@" "win32"  < ..\src\lsp\config.lsp.in > lsp\
config.lsp
        cd c
        nmake "ECL_THREADS = 1" "ECL_CFLAGS = -MD -Zi -GX -DGC_DLL -nologo -DECL
_THREADS -DGC_BUILD"

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..
        cl /Feecl_min.exe cinit.obj c\all_symbols.obj eclmin.lib -MD -Zi /link /
nodefaultlib:libcmt /nodefaultlib:libcmtd /nodefaultlib:libc /nodefaultlib:libd
/nodefaultlib:libcd eclgc.lib eclgmp.lib user32.lib ws2_32.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:ecl_min.exe
/debug
/nodefaultlib:libcmt
/nodefaultlib:libcmtd
/nodefaultlib:libc
/nodefaultlib:libd
/nodefaultlib:libcd
eclgc.lib
eclgmp.lib
user32.lib
ws2_32.lib
cinit.obj
c\all_symbols.obj
eclmin.lib
   Creating library ecl_min.lib and object ecl_min.exp
eclgc.lib(malloc.obj) : error LNK2001: unresolved external symbol _errno
ecl_min.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
----------------------------------------------------------------------------------------------------------------

Can anyone point me in the right direction?

Sorry about the length of this note.

Thanks,
Ben




More information about the ecl-devel mailing list