[gdal-dev] broken trunk build on Win

Joaquim Luis jluis at ualg.pt
Thu Apr 12 08:44:08 EDT 2012


Hi,

I made some false reports in the past about the build failures that 
ended up being caused by no starting by a "make clean", but that is not 
the case this time.

I'm getting these errors on linking the current head.

Joaquim

LIBCMT.lib(dosmap.obj) : error LNK2005: _errno already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _initterm_e already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: exit already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _amsg_exit already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: _encoded_null already defined 
in MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(crtheap.obj) : error LNK2005: _malloc_crt already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: _unlock already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: _lock already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" 
(?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_a already defined in 
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_z already defined in 
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_a already defined in 
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_z already defined in 
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(mbctype.obj) : error LNK2005: _getmbcp already defined in 
MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(winxfltr.obj) : error LNK2005: __CppXcptFilter already 
defined in MSVCRT.lib(MSVCR100.dll)
LIBCMT.lib(lconv.obj) : error LNK2005: localeconv already defined in 
MSVCRT.lib(MSVCR100.dll)
MSVCRT.lib(MSVCR100.dll) : error LNK2005: _setmode already defined in 
LIBCMT.lib(setmode.obj)
MSVCRT.lib(MSVCR100.dll) : error LNK2005: _close already defined in 
LIBCMT.lib(close.obj)
MSVCRT.lib(MSVCR100.dll) : error LNK2005: _open already defined in 
LIBCMT.lib(open.obj)
    Creating library gdal_i.lib and object gdal_i.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other 
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other 
libs; use /NODEFAULTLIB:library
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol main 
referenced in function __tmainCRTStartup
gdal_w64.dll : fatal error LNK1120: 1 unresolved externals


More information about the gdal-dev mailing list