[Gdal-dev] More problems compiling under VS.NET 2003

Thom DeCarlo t.r.decarlo at larc.nasa.gov
Tue Apr 5 17:00:42 EDT 2005


Argh! Sorry about that last one... There was an environment variable still
hanging around from another project that was interfering. 

But, the next _real_ problem is still showing up at link time. This is the
message:

        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 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        link /dll /debug /INCLUDE:_OCTNewCoordinateTransformation 
/INCLUDE:_OGRFeatureStylePuller  /INCLUDE:_OSRValidate  
/INCLUDE:_OPTGetProjectionMethods  /INCLUDE:_OGR_G_GetPointCount 
/INCLUDE:_OGRRegisterAll /INCLUDE:_GDALSimpleImageWarp  
/INCLUDE:_GDALReprojectImage  /INCLUDE:_GDALComputeMedianCutPCT  
/INCLUDE:_GDALDitherRGB2PCT port\*.obj gcore\*.obj alg\*.obj 
frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib       
odbc32.lib  gcore\Version.res  /out:gdal12.dll /implib:gdal_i.lib
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

   Creating library gdal_i.lib and object gdal_i.exp
LINK : error LNK2001: unresolved external symbol _GDALDitherRGB2PCT
LINK : error LNK2001: unresolved external symbol _GDALComputeMedianCutPCT
LINK : error LNK2001: unresolved external symbol _GDALReprojectImage
LINK : error LNK2001: unresolved external symbol _GDALSimpleImageWarp
gdal12.dll : fatal error LNK1120: 4 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.


It looks like there symbols are added in the $BASE_INSTALL var in
makefile.vc. Any notion what I'm missing?

Thanks,
Thom

--
Thom DeCarlo
-------------------------------------------------------
    I love deadlines. I especially like the
whooshing sound they make as they go flying by.

> -----Original Message-----
> From: Thom DeCarlo
> Sent: Tuesday, April 05, 2005 4:18 PM
> To: 'gdal-dev'
> Subject: RE: [Gdal-dev] More problems compiling under VS.NET 2003
> 
> Ok, new problem...
> 
> It got all the way to the point of linking the libraries and errored out
> with this message:
> 
>         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 7.10.3077
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>         link /dll /debug /INCLUDE:_OCTNewCoordinateTransformation
> /INCLUDE:_OGR FeatureStylePuller  /INCLUDE:_OSRValidate
> /INCLUDE:_OPTGetProjectionMethods  /INCLUDE:_OGR_G_GetPointCount
> /INCLUDE:_OGRRegisterAll /INCLUDE:_GDALSimpleImageWarp
> /INCLUDE:_GDALReprojectImage  /INCLUDE:_GDALComputeMedianCutPCT
> /INCLUDE:_GDALDitherRGB2PCT port\*.obj gcore\*.obj alg\*.obj
> frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
> odbc32.lib "" gcore\Version.res  /out:gdal12.dll /implib:gdal_i.lib
> Microsoft (R) Incremental Linker Version 7.10.3077
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> LINK : fatal error LNK1104: cannot open file '.obj'
> NMAKE : fatal error U1077: 'link' : return code '0x450'
> Stop.
> 
> 
> Now, there *are* obj files in all of those directories, so I don't know
> what
> .obj file it is complaining about.
> 
> Any ideas?
> 
> Thanks,
> Thom






More information about the Gdal-dev mailing list