[GRASS-user] Call Grass modules from C++ code

matteo poletti pollo1_91 at yahoo.it
Fri Feb 15 15:42:55 PST 2013


> Da: Hamish <hamish_b at yahoo.com>

> have a look at the functions in lib/gis/spawn.c.

Ok, so if I got it right I need to do a sys call exec. What do you usually do for reading the module's output?

I suppose that, doing the things this way, I'll need to run my program inside a grass shell to have it working.  

Do I need the "extern" keyword in this case? I guess not since I'm doing a sys call.

Maybe I've misunderstood the example...
Thanks!
Matteo



More information about the grass-user mailing list