[Gdal-dev] Link error on Win2K

gdal-dev-admin at remotesensing.org gdal-dev-admin at remotesensing.org
Tue Dec 9 09:41:20 EST 2003


Hi all,

I am getting an unresolved external after building the cvs verison.
cvs update from minutes ago on Win2K using VC6.
No errors until final link.

         cd ..
         if exist gdal.lib del gdal.lib
         lib /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj 
ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
Microsoft (R) Library Manager Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

         link /dll /debug 
/INCLUDE:_OCTNewCoordinateTransformation  /INCLUDE:_OGRRegisterAll  /INCLUD
E:_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   D:\third_party\lib/xerces-c220.lib
  odbc32.lib  D:\third_party\ECWSdk\lib\NCSEcw.lib 
D:\third_party\ECWSdk\lib\NCSEcwC.lib  D:\third_pa
rty\ECWSdk\lib\NCSUtil.lib       D:\third_party\lib/libjpeg6s.lib 
D:\third_party\lib/libpng125s.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.

    Creating library gdal_i.lib and object gdal_i.exp
ogrsf_frmts.lib(ogrregisterall.obj) : error LNK2001: unresolved external 
symbol _RegisterOGRVRT
gdal11.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

ogr\ogrsf_frmts\vrt\ogrvrtdriver.cpp gets compiled (no errors) and gets 
added to ogrsf_frmts.lib.

Any ideas?

Todd




More information about the Gdal-dev mailing list