[gdal-dev] Compiling gdal-svn-stable-2008.01.21 with libcurl support

Frank Warmerdam warmerdam at pobox.com
Mon Jan 21 20:41:54 EST 2008


Miguel Fernandes wrote:
> Hello,
> 
> I'm compiling gdal version gdal-svn-stable-2008.01.21 with libcurl 
> libcurl-7.15.1-msvc-win32-ssl-0.9.8a-zlib-1.2.3 support and netcdf 3.6.1 
> using MC VC7.
> I'm having a linkage error in function select in file gdalhttp.cpp, i've 
> tried to look for the declaration of this function in the code but i'm 
> not being able to find it, is it part of gdal code or i'm i missing some 
> library, i've checked the includes and i seem to have them all. The 
> output is the following:
> 
>  link /nologo /dll /debug /INCLUDE:_OGRFeatureStylePuller  
> /INCLUDE:_OSRValidate  /INCLUDE:_OPTGetProjectionMethods  
> /INCLUDE:_OGR_G_GetPointCount  /INCLUDE:_OGRRegisterAll 
> /INCLUDE:_GDALSimpleImageWarp at 36  /INCLUDE:_GDALReprojectImage at 48  
> /INCLUDE:_GDALComputeMedianCutPCT at 32  /INCLUDE:_GDALDitherRGB2PCT at 28  /IN
> CLUDE:_OCTNewCoordinateTransformation at 8 /INCLUDE:_vbSafeArrayToPtr at 16 
> port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj 
> ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
> vb6\vb6_support.obj       odbc32.lib odbccp32.lib user32.lib           
> C:\Programas\netCDF_3.6.1\lib\netcdf.lib               
> C:\Programas\libs\libcurl\libcurl_imp.lib  gcore\Version.res  
> /out:gdal15.dll /implib:gdal_i.lib
> 
> Creating library gdal_i.lib and object gdal_i.exp
> gdalhttp.obj : error LNK2019: unresolved external symbol 
> __imp__select at 20 referenced in function "enum CPLErr __cdecl 
> CPLHTTPFetchMulti(struct CPLHTTPRequest *,
> int,char const * const *)" 
> (?CPLHTTPFetchMulti@@YA?AW4CPLErr@@PAUCPLHTTPRequest@
> @HPBQBD at Z)
> 
> gdal15.dll : fatal error LNK1120: 1 unresolved externals
> 
> Can anyone point where i can find the declaration of this function or 
> why the linker isn't finding it.

Miguel,

Try adding wsock32.lib in your CURL_LIB declaration in nmake.opt.  Frankly
I'm quite surprised that gdalhttp.cpp uses select() directly.

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    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list