[GRASS-windows] compiler error 'undefined reference to
G_gisinit(char const*)
KB
kartik.ballal at wipro.com
Mon Mar 9 02:47:02 EDT 2009
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
but still getting the same error.
-------------------
Please suggest how to link .dll files to the sample grass code through
cygwin.
Thanks in advance.
Reagrds,
Kartik
________________________________
From: Markus Neteler (via Nabble)
[mailto:ml-user+57828-2140781643 at n2.nabble.com]
Sent: Saturday, March 07, 2009 1:18 AM
To: Kartik Ballal (WT01 - Business Technology Services (FS & TMT))
Subject: Re: [GRASS-windows] compiler error 'undefined reference to
G_gisinit(char const*)
On Fri, Mar 6, 2009 at 1:39 PM, KB <kartik.ballal at ...
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2437747&i=0> >
wrote:
>
> Hi,
> I have installed 6.2.3 version on windows and trying to compile
r.example
> using cygwin. I am using below command from /usr/local/grass-6.2.3
path
>
> gcc -I ./include main.cpp
>
> ---------------------
> on executing the above command I get an error 'undefined reference to
...'
> (all function used in rater.c). Please help ...
> --
You need to add the path to the GRASS include files.
Markus
_______________________________________________
grass-windows mailing list
grass-windows at ...
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2437747&i=1>
http://lists.osgeo.org/mailman/listinfo/grass-windows
________________________________
This email is a reply to your post @
http://n2.nabble.com/compiler-error-%27undefined-reference-to-G_gisinit%
28char-const*%29-tp2435408p2437747.html
You can reply by email or by visting the link above.
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
--
View this message in context: http://n2.nabble.com/compiler-error-%27undefined-reference-to-G_gisinit%28char-const*%29-tp2435408p2447717.html
Sent from the Grass - Win mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-windows/attachments/20090308/9acd15e0/attachment.html
More information about the grass-windows
mailing list