kartik.bal...@wipro.com wrote:

> I have installed 6.2.3 version on windows and trying to compile
> r.example using cygwin. I am using below command from folder path:
> /usr/local/grass-6.2.3 where I have placed the source file.
> 
>                     $ gcc -I ./include main.cpp
> 
> On executing the above command, I get an error:  'undefined reference to
> G_gisinit' (also for all other functions used in r.example ).

You have to link against the relevant libraries, e.g.:

        gcc ... -L./lib -lgrass_gis

-- 
Glynn Clements <gl...@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to