[Gdal-dev] Link error when building gdal on VC++6

Pereira, Ricardo Scachetti rpereira at ku.edu
Thu Sep 9 14:58:05 EDT 2004


	Hi, folks,

	I've just checked out a fresh copy of gdal. I tried to build it
on Windows (Visual C++ 6) using the instructions on this document
http://www.remotesensing.org/gdal/download.html as I've always done.
This time, the build fails with this message:

Microsoft (R) Library Manager Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

        link /dll /debug /INCLUDE:_OCTNewCoordinateTransformation
/INCLUDE:_OGR
RegisterAll  /INCLUDE:_OGRFeatureStylePuller  /INCLUDE:_OSRValidate
/INCLUDE:_O
PTGetProjectionMethods  /INCLUDE:_OGR_G_GetPointCount
/INCLUDE:_GDALSimpleImageW
arp  /INCLUDE:_GDALSuggestedWarpOutput  /INCLUDE:_GDALGCPTransform
/INCLUDE:_GD
ALComputeMedianCutPCT  /INCLUDE:_GDALDitherRGB2PCT port\*.obj
gcore\*.obj alg\*.
obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
odbc32.lib
                  /out:gdal12.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
gdalallregister.obj : error LNK2001: unresolved external symbol
_GDALRegister_CP
G
gdal12.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.


	When I move back to the last working copy I had (from 07/17/04)
it builds fine.
	Does anyone know what is broken in the latest version in CVS?
	Many thanks,

Ricardo






More information about the Gdal-dev mailing list