I'm trying to compile/build gdal fo windows, with minimal external libraries set in nmake.opt (just expat and postgresql).<br>As explained by the docs, the deafult target is Debug, in fact it tries
to link libpqd.dll for postgres, which I suppose is the debug version.<br>
Anyway I'm not sure how to set the Release target...<br>In the default nmake.opt there are the following otflags:<br><br># Compilation flags<br>!IFNDEF OPTFLAGS<br>!IF $(MSVC_VER) >= 1400<br>!IFNDEF DEBUG<br>OPTFLAGS= /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG<br>
!ELSE<br>OPTFLAGS= /nologo /MD /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal$(VERSION)<div id=":1x9" class="ii gt">.pdb<br>!ENDIF<br>!ELSE<br>!IFNDEF DEBUG<br>OPTFLAGS= /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG<br>
!ELSE<br>#OPTFLAGS= /nologo /MD /GX /Ox<br>#OPTFLAGS= /nologo /MD /EHsc /GR /Zi /W4 /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb<br>!ENDIF<br>!ENDIF #MSVC_VER<br>!ENDIF # OPTFLAGS<br><br>In my case, using the vc9 (MSVC_VER=1500), the following flags are set:<br>
<br>OPTFLAGS= /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG<br><br>I'm not experiences with Windows build, so ?m not sure about the meaning of these flags, and in particular /DNDEBUG.<br>
Is the Debug target set here? Otherwise, where is it set as default?<br>A bit confused....<br><br>thanks for any explanation,<br>giovanni<br></div>