Changes between Version 3 and Version 4 of FAQMiscellaneous


Ignore:
Timestamp:
Mar 30, 2009, 10:28:44 AM (15 years ago)
Author:
Even Rouault
Comment:

add paragraph about C API vs C++ API

Legend:

Unmodified
Added
Removed
Modified
  • FAQMiscellaneous

    v3 v4  
    6969 * [http://vcfaq.mvps.org/lang/9.htm 1st possible cause] of segmentation fault in a dll
    7070 * [http://blogs.msdn.com/oldnewthing/archive/2006/09/15/755966.aspx Allocating and freeing memory across module boundaries]
     71
     72== C API vs C++ API ==
     73
     74If you intend writing code using GDAL/OGR that will not require recompilation when run against different GDAL/OGR versions, you should try
     75to stick to the C API when possible. Altough the changes in the C++ API are generally made in a upward compatible way, the C++ ABI
     76might change from a minor release to another one (for example from GDAL 1.5.0 to GDAL 1.6.0) due to additions of new virtual methods, new
     77member variables to core classes, etc.
     78
     79