C++ in GRASS

Hi GRASS programmers,

Does anybody know how to incorporate C++ code into GRASS programs?

We tried to use g++ instead of gcc and moved our source to a .cpp
filename ... only realizing that compilation failed with a bunch
of error messages. So this doesn't seem to be a promising way.

Thanks for your help.

Olaf

The C++ compilation should not work because C++ is a lot less forgiving
about the headers of each function definition.

C++ can call C functions quite happily, so it's just a matter of the
headers not compiling in. When I did this, I just modified the header
files as I needed them.

Angus Carr.

On Fri, 13 Nov 1998, Olaf Hellwich wrote:

Hi GRASS programmers,

Does anybody know how to incorporate C++ code into GRASS programs?

We tried to use g++ instead of gcc and moved our source to a .cpp
filename ... only realizing that compilation failed with a bunch
of error messages. So this doesn't seem to be a promising way.

Thanks for your help.

Olaf