Opened 11 years ago
Closed 11 years ago
#5248 closed defect (fixed)
Trunk does not build with VS2012
Reported by: | jluis | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
C:\programs\GDALtrunk\gdal\ogr\ogrsf_frmts>cd geojson && nmake /nologo /f makefile.vc && cd .. || exit 1 cl /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4018 /wd4389 /DHAVE_SSE_AT_COMPILE_TIME -I..\..\..\port -I..\..\..\ogr -I..\..\..\gcore -I..\..\..\alg -I..\..\..\ogr\ogrsf_frmts -I. -I.. -I..\.. -Ilibjson -DOGR_ENABLED /c ogrgeojsondriver.cpp ogrgeojsondatasource.cpp ogrgeojsonlayer.cpp ogrgeojsonwritelayer.cpp ogrgeojsonutils.cpp ogrgeojsonreader.cpp ogrgeojsonwriter.cpp ogresrijsonreader.cpp ogrtopojsonreader.cpp ogrgeojsondriver.cpp ogrgeojsondatasource.cpp c:\programs\gdaltrunk\gdal\ogr\ogrsf_frmts\geojson\libjson\json_inttypes.h(22) : fatal error C1083: Cannot open include file: 'inttypes.h': No such file or directory
This happens because json_inttypes.h has this, but inttypes.h does not exists on VS2012 (it does on VS2013)
#if defined(_MSC_VER) && _MSC_VER < 1700 /* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
Note:
See TracTickets
for help on using tickets.
r26484 "Fix compilation of embedded libjson for VS2012 / MSVC_VER 1700 (#5238, trunk only, @FOSS4G2013)"
Reflecting the change done in libjson upstream since I fetched it (the comment is still technically wrong but I'm not going to "fork" from upstream just because of that)