[GRASS-dev] error compiling grass on windows using cygwin
Glynn Clements
glynn at gclements.plus.com
Fri Mar 20 23:26:47 EDT 2009
kartik.ballal at 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 <glynn at gclements.plus.com>
More information about the grass-dev
mailing list