[Gdal-dev] Link error on Win2K
Frank Warmerdam
warmerdam at pobox.com
Wed Dec 10 15:57:45 EST 2003
gdal-dev-admin at remotesensing.org wrote:
> 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.
Todd,
I tried this on win32, and it seems to work for me. I suspect you did not
pull the new gdal/ogr/ogrsf_frmts/vrt directory from CVS when updating.
You need to use the "cvs update -d" using the commandline cvs client to
pull out new directories as well as new files from CVS. Do you have
a gdal/ogr/ogrsf_frmts/vrt directory?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list