GRASS and C++: Difference between revisions
Jump to navigation
Jump to search
(more examples) |
(+notes) |
||
Line 21: | Line 21: | ||
* http://trac.osgeo.org/grass/browser/grass/trunk/visualization/wximgview/ | * http://trac.osgeo.org/grass/browser/grass/trunk/visualization/wximgview/ | ||
== Notes == | |||
When developing C++ code to call a C function you need to specified for the compiler that the gis.h include is C code with: | |||
<source lang="c"> | |||
extern "C" | |||
{ | |||
#include <grass/gis.h> | |||
} | |||
</source> | |||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:Linking to other languages]] | [[Category:Linking to other languages]] | ||
[[Category:C++]] | [[Category:C++]] |
Revision as of 19:53, 5 May 2012
(page to be expanded)
Calling GRASS library functionality in C++
For working examples, see:
Digitizer:
I/O:
Raster data processing
Image processing
Visualization:
- http://trac.osgeo.org/grass/browser/grass/trunk/visualization/xganim/
- http://trac.osgeo.org/grass/browser/grass/trunk/visualization/wximgview/
Notes
When developing C++ code to call a C function you need to specified for the compiler that the gis.h include is C code with:
extern "C"
{
#include <grass/gis.h>
}