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 warmerdam, 16 years ago

Cc: Mateusz Łoskot added
Keywords: geojson added
Status: newassigned

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?

comment:2 by Even Rouault, 16 years ago

Cc: Even Rouault added

I've managed to compile trunk with mingw and do some basic input/output with the GeoJSON driver.

comment:3 by warmerdam, 16 years ago

Resolution: fixed
Status: assignedclosed

Cool, closing.

Note: See TracTickets for help on using tickets.