Opened 16 years ago
Closed 16 years ago
#2044 closed defect (fixed)
GeoJSON Compiler problems with MINGW
Reported by: | whatnick | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | normal | Keywords: | geojson |
Cc: | Mateusz Łoskot, Even Rouault |
Description
Various WIN32 defines break the compilation of the GeoJSON driver under MSYS/MINGW.Particularly vasprintf in jsonc/printbuf.c. "vasprintf" is not a standard MINGW library function but is one for MSVC. #defines leave it out for WIN32 platforms while using MINGW, thus breaking the link.
Change History (3)
comment:1 by , 16 years ago
Cc: | added |
---|---|
Keywords: | geojson added |
Status: | new → assigned |
comment:2 by , 16 years ago
Cc: | added |
---|
I've managed to compile trunk with mingw and do some basic input/output with the GeoJSON driver.
Note:
See TracTickets
for help on using tickets.
I have replaced all the platform specific stuff in printbuf.c (r13198) with use of CPLVASPrintf() which is new in gdal/port (r13197), and uses CPLString for implementation.
There is still some WIN32 specific stuff in json_util.c. Does this cause problems on MSYS/MINGW?