[GRASS-windows] compiler error 'undefined reference to G_gisinit(char const*)

Markus Neteler neteler at osgeo.org
Mon Mar 9 04:17:46 EDT 2009


On Mon, Mar 9, 2009 at 7:47 AM, KB <kartik.ballal at wipro.com> wrote:
> Hi Markus,
>
> Thanks for your reply. I have included the following files.
>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
>  #include <grass/gis.h>
> #include <grass/Vect.h>
> #include <grass/dbmi.h>
> #include <grass/gisdefs.h>
>
> But still getting the same error. From my understanding, gcc is able to find
> the definitions of function but not the implementation i.e. it is not able
> to link to the .dll files. I tried using following command:
>
> $ gcc -I ./include -L ./lib/ main.cpp

Are the file like gis.h in
./include/grass/gis.h
?

Otherwise gcc won't find them.

Markus


More information about the grass-windows mailing list