[gdal-dev] Win32 Default Build Options

Lucena, Ivan ivan.lucena at pmldnet.com
Mon Feb 4 21:09:51 EST 2008


Frank,

Frank Warmerdam wrote:
> The problem with the GSG driver does not manifest at built time (except
> as nasty warnings).  It only comes up at runtime.  So either check the
> warnings carefull for stuff in the gdal/frmts/gsg directory or actually
> try running "gdalinfo -mm " against the autotest/gdrivers/gsg_binary.grd
> file.

No warming compilation on:

C:\Dev\gdal\frmts\gsg>nmake -f makefile.vc clean
C:\Dev\gdal\frmts\gsg>nmake -f makefile.vc

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

         cl /nologo /MD /EHsc /Ox 
/D_CRT_SECURE_NO_DEPRECATE/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG 
-I..\..\port -I..\..\ogr -I..\..\gcore  -I..\..\alg   /c gsagdataset.cpp 
gsagdataset.cpp
         cl /nologo /MD /EHsc /Ox 
/D_CRT_SECURE_NO_DEPRECATE/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG 
-I..\..\port -I..\..\ogr -I..\..\gcore  -I..\..\alg   /c gsbgdataset.cpp
gsbgdataset.cpp
         cl /nologo /MD /EHsc /Ox 
/D_CRT_SECURE_NO_DEPRECATE/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG 
-I..\..\port -I..\..\ogr -I..\..\gcore  -I..\..\alg   /c gs7bgdataset.cpp
gs7bgdataset.cpp
         xcopy /D  /Y *.obj ..\o
C:gs7bgdataset.obj
C:gsagdataset.obj
C:gsbgdataset.obj
3 File(s) copied


Or linkage:


C:\Dev\gdal\frmts\gsg>cd ..\..
C:\Dev\gdal>nmake -f makefile.vc
...
         lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj 
frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib 
vb6\vb6_support.obj
	ogrsf_frmts.lib(parsexsd.obj) : *warning LNK4221: no public symbols 
found; archive member will be inaccessible*
         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 
/INCLUDE:_OCTNewCoordinateTransformation at 8 
/INCLUDE:_vbSafeArrayToPtr at 16port\*.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 gcore\Version.res 
  /out:gdal16dev.dll /implib:gdal_i.lib
LINK : gdal16dev.dll not found or not built by the last incremental 
link; performing full link
...

And everything looks good at runtime:

C:\Dev\gdal_autotest\gdrivers\data>gdalinfo -mm gsg_binary.grd
Driver: GSBG/Golden Software Binary Grid (.grd)
Files: gsg_binary.grd
Size is 20, 20
Coordinate System is `'
Origin = (440720.000000000000000,3751320.000000000000000)
Pixel Size = (60.000000000000000,-60.000000000000000)
Corner Coordinates:
Upper Left  (  440720.000, 3751320.000)
Lower Left  (  440720.000, 3750120.000)
Upper Right (  441920.000, 3751320.000)
Lower Right (  441920.000, 3750120.000)
Center      (  441320.000, 3750720.000)
Band 1 Block=20x1 Type=Float32, ColorInterp=Undefined
   Min=74.000 Max=255.000   Computed Min/Max=74.000,255.000
   NoData Value=1.701410009187828e+038


I will keep my yes on the /MD vs /MDd stuff but I believe you are right, 
We don't need it even when we are really debugging.

Best regards,

Ivan




More information about the gdal-dev mailing list