[Gdal-dev] errors compiling on Win2K
Thom DeCarlo
T.R.DeCarlo at larc.nasa.gov
Mon Nov 17 12:08:51 EST 2003
Well, I'm still getting the same errors after downloading today's cvs
snapshot (031117). Can anyone help me out here?
Thanks,
Thom
-----Original Message-----
From: Thom DeCarlo
Sent: Friday, November 14, 2003 3:06 PM
To: GDAL developers
Subject: [Gdal-dev] errors compiling on Win2K
I grabbed the latest cvs (031114) and compiling with OGR formats gives a lot
of errors when linking the gdal11.dll. Any ideas what needs to change to
make this work?
OBTW, I'm using VC++ 6 SP5 and Win2K SP4.
link /dll /debug /INCLUDE:_OCTNewCoordinateTransformation
/INCLUDE:_OGRRegisterAll /INCLUDE:_OGRFeatureStylePuller
/INCLUDE:_OSRValidate /INCLUDE:_OPTGetProjectionMethods
/INCLUDE:_OGR_G_GetPointCount /INCLUDE:_GDALSimpleImageWarp
/INCLUDE:_GDALSuggestedWarpOutput /INCLUDE:_GDALGCPTra
nsform /INCLUDE:_GDALComputeMedianCutPCT /INCLUDE:_GDALDitherRGB2PCT
port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj
ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib odbc32.lib "C:\Program
Files\Earth Resource Mapping\ECW SDK"\lib\NCSEcw.lib "C:\Program Files\Earth
Resource Mapping\ECW SDK"\lib\NC
SEcwC.lib "C:\Program Files\Earth Resource Mapping\ECW SDK"\lib\NCSUtil.lib
"C:\Svs_dev\src\jasper-1.700.2"\src\msvc\Win32_Release\libjasper.lib
/out:gdal11.dll /implib:gdal_i.lib
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
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)
LIBC.lib(mbctype.obj) : error LNK2005: __getmbcp already defined in
MSVCRT.lib(MSVCRT.dll)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __strdup already defined in
LIBC.lib(strdup.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __unlink already defined in
LIBC.lib(unlink.obj)
LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in
MSVCRT.lib(MSVCRT.dll); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(mbctype.obj) : warning LNK4006: __getmbcp already defined in
MSVCRT.lib(MSVCRT.dll); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strdup already defined in
LIBC.lib(strdup.obj); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __unlink already defined in
LIBC.lib(unlink.obj); second definition ignored
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 "LIBC" conflicts with use of other libs;
use /NODEFAULTLIB:library
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
gdal11.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
Thom DeCarlo
Sr. S/W Eng, VisSim
ConITS - AvSP - LaRC - NASA
More information about the Gdal-dev
mailing list