[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
invalid directive foreign(...
From: |
Christoph Schick |
Subject: |
invalid directive foreign(... |
Date: |
Sun, 6 Dec 2015 07:24:41 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
Hi,
I have a project in which I need to convert a date to a unique number
and vice versa. For simplicity reasons, the unique number is the number
of days since 1.1.1970.
I have found some C code and changed it according to my needs. It was
working nicely when testing it in a C main programme.
However, when I modeled the predicate to be later used in the project on
the example in the manual and compiled it with gplc ("gplc date_unix.pl
date_unix.c"), I got a message "invalid directive
foreign(date_unix(?stamp,?year,?month,?day))."
I cannot find my mistake, is there anything that I did not spot when
writing the predicate? I have attached the sources as a tar file, I hope
this is OK.
Cheers Christoph
date_unix.tar
Description: Unix tar archive
- invalid directive foreign(...,
Christoph Schick <=