trivial problem compiling API example

8 views
Skip to first unread message

bobworthy

unread,
Aug 9, 2010, 8:24:19 PM8/9/10
to link-grammar
I've taken your two example programs from the API documentation at
http://www.abisource.com/projects/link-grammar/api/index.html to try
out.

The first example program i cut and pasted into test.c, in a directory
'test' as seen below. That program worked perfectly first time.

The second example, printing out the 'PP' links in brackets gives me
the following compile error. The source is directly cut and past into
'testp.c'.

bworthy@emperor:~/link/link-grammar-4.6.7/test$ gcc -I/usr/local/
include/link-grammar -llink-grammar testp.c
testp.c: In function ‘print_words_with_prep_phrases_marked’:
testp.c:15: error: dereferencing pointer to incomplete type
testp.c:19: error: dereferencing pointer to incomplete type
testp.c:19: error: dereferencing pointer to incomplete type
testp.c:20: error: dereferencing pointer to incomplete type
testp.c:21: error: dereferencing pointer to incomplete type
testp.c:28: error: dereferencing pointer to incomplete type

The link-grammar installed with simple defaults as link-grammar-4.6.7

This is my system

bworthy@emperor:~/link/link-grammar-4.6.7/test$ cat /proc/version
Linux version 2.6.24-28-generic (buildd@rothera) (gcc version 4.2.4
(Ubuntu 4.2.4-1ubuntu4)) #1 SMP Fri Jun 18 12:02:15 UTC 2010

I know i'm missing a compile directive, or something stupid. Any help?
Thanks.

bobworthy

unread,
Aug 10, 2010, 12:45:54 PM8/10/10
to link-grammar
The example program is missing the include

#include "constituents.h"

elham shabanalifami

unread,
Aug 11, 2010, 2:43:48 AM8/11/10
to link-g...@googlegroups.com
no it had this file
its problem occure in cmg1.conduit-widgets.com [dynamic] in function initialize, line handleheight().
i use LinkGrammar-01-22-07 .
what should i do?
could you help me?
tanx

 
On Tue, Aug 10, 2010 at 9:15 PM, bobworthy <bwo...@keycomputerconsultants.com> wrote:
The example program is missing the include

#include "constituents.h"

--
You received this message because you are subscribed to the Google Groups "link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to link-grammar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/link-grammar?hl=en.


Linas Vepstas

unread,
Aug 11, 2010, 9:37:05 AM8/11/10
to link-g...@googlegroups.com
On 11 August 2010 01:43, elham shabanalifami <eef...@gmail.com> wrote:
> no it had this file
> its problem occure in cmg1.conduit-widgets.com [dynamic] in function

this website shows a blank page

> initialize, line handleheight().

there is no function called handleheight in link-grammar

> i use LinkGrammar-01-22-07 .

Link-grammar never numbers it versions with dates. Anyway, the above
date is three
and a half years ago, there have been many many many newer versions since then.

> what should i do?

Try a new version?

Linas Vepstas

unread,
Aug 11, 2010, 9:44:33 AM8/11/10
to link-g...@googlegroups.com
On 10 August 2010 11:45, bobworthy <bwo...@keycomputerconsultants.com> wrote:
> The example program is missing the include
>
> #include "constituents.h"

Thanks for the report,
I added this to the example code.

--linas

elham shabanalifami

unread,
Aug 12, 2010, 2:21:50 AM8/12/10
to link-g...@googlegroups.com
hello
how i can find the newer version?
could you mail it to me?
or suggest a link to download?
tanx

Linas Vepstas

unread,
Aug 12, 2010, 9:22:51 AM8/12/10
to link-g...@googlegroups.com
On 12 August 2010 01:21, elham shabanalifami <eef...@gmail.com> wrote:
> hello
> how i can find the newer version?
> could you mail it to me?
> or suggest a link to download?

The main Link-Grammar website is here:

http://www.abisource.com/projects/link-grammar/

It provides documentation, downloads and a pointer to this mailing
list, which, surely, you must have seen!

--linas

Reply all
Reply to author
Forward
0 new messages