[Gdal-dev] Building on Windows

Matt Hanson mhanson at photon.com
Tue Aug 1 12:05:11 EDT 2006


Frank, nice call!   It would have taken a while for that to occur to me. I never thought that there might be a problem mixing the vsvars32.bat file in the cygwin environment.
 
Thanks, matt

________________________________

From: Frank Warmerdam [mailto:warmerdam at pobox.com]
Sent: Tue 8/1/2006 11:47 AM
To: Matt Hanson
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Building on Windows



Matt Hanson wrote:
> Norman, thanks.   I think I did the right thing. cpl_config is automatically generated so I thought I needed to change the defines (HAVE_VPRINTF, HAVE_VSNPRINTF, and HAVE_SNPRINTF) to 0's in cpl_config.h.vc.  I don't understand why these functions aren't defined in the MSVC compilers but whatever.
> 
> Things compiled find but then got a linking error, anyone come across this?
> 
> 
> *************************************************
> ogrsf_frmts.lib(parsexsd.obj) : warning LNK4221: no public symbols found; archive member will be inaccessible
> link /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  /INCLUDE:_vbSafeArrayToPtr at 16  /INCLUDE:_OCTNewCoordinateTransformation at 8 port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib vb6\vb6_support.obj      odbc32.lib                         gcore\Version.res  /out:gdal13.dll /implib:gdal_i.lib
> /usr/bin/link: too many arguments
> Try `/usr/bin/link --help' for more information.
> NMAKE : fatal error U1077: 'C:\cygwin\bin\link.EXE' : return code '0x1'
> Stop.
>
> **************************************************

Matt,

I have found myself having to hide the Cygwin /usr/bin/link.exe on some
of my systems to ensure that the Visual Studio link.exe gets used.  Try:

   mv /usr/bin/link.exe /usr/bin/link_hidden.exe

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







More information about the Gdal-dev mailing list