Opened 16 years ago
Closed 16 years ago
#2090 closed defect (fixed)
Hard to avoid C++ Dependencies with GDAL/OGR C API
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.5.0 |
Component: | ConfigBuild | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Including cpl_string.h and ogr_core.h - both intended to be C friendly - from a C++ program results in dependencies on the OGREnvelope and CPLString classes.
We need a way to avoid this.
Change History (1)
comment:1 by , 16 years ago
Component: | default → ConfigBuild |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I have modified include files in r13340 and r13339 to supress C++ class definitions in predominately C include files when CPL_SUPRESS_CPLUSPLUS is defined. This seems to do what mapserver needs and could be useful to others.