[gdal-dev] /MD vs /MDd for DEBUG MSVC builds

Even Rouault even.rouault at spatialys.com
Thu Sep 28 03:05:45 PDT 2017


Hi,

Given the feedback, I've just committed the below change (in trunk only)

Even

> 
> $ svn diff nmake.opt
> Index: nmake.opt
> ===================================================================
> --- nmake.opt	(revision 40206)
> +++ nmake.opt	(working copy)
> @@ -132,13 +132,13 @@
>  !IFNDEF DEBUG
>  OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP /MD /EHsc /Ox
> /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG !
ELSE
> -OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP /MD /EHsc /FC
> /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG 
+OPTFLAGS=
> $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP /MDd /EHsc /FC
> /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG !ENDIF
>  !ELSE
>  !IFNDEF DEBUG
>  OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /Ox /FC /DNDEBUG
>  !ELSE
> -OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /FC /DDEBUG
> +OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MDd /EHsc /GR /FC /DDEBUG
>  !ENDIF
>  !ENDIF  #MSVC_VER
>  !ENDIF  # OPTFLAGS
> 

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170928/e91a6215/attachment-0001.html>


More information about the gdal-dev mailing list