[GRASSLIST:417] Re: GRASS and CORBA

Glynn Clements glynn.clements at virgin.net
Wed Jun 18 00:59:44 EDT 2003


Xueming Wu wrote:

> I'm not sure if this is the right place to ask such a question.
> If it disturbs you, please forgive me.
> 
> I am trying to develop an application using Grass libraries
> under CORBA standard. I got the following error when I compiled
> my programs:
> 
> MapObject_i.o(.text+0x2d): In function
> `MapObject_i::getOverLayers(InformationLayer::BaseMap const&)':
> /home/xwu/arch_dev/information_layer/MapServer/MapObject_i.cc:25:
> undefined reference to `G_gisinit(char*)'
> collect2: ld returned 1 exit status
> gmake: *** [MapServer] Error 1

The GRASS header files aren't designed for use with C++, so you have
to use e.g.

	extern "C" {
	#include "gis.h"
	}

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list