Article View: comp.lang.prolog
Article #777Re: Time and Date in Quintus P.
From: Joern Baier
Date: Fri, 04 Sep 1992 18:53
Date: Fri, 04 Sep 1992 18:53
58 lines
2708 bytes
2708 bytes
In article <Bu0yr6.LAC@acsu.buffalo.edu> v104n55k@ubvmsd.cc.buffalo.edu (David I Schwartz) writes: >[...] >Check out your library files. In version 3.1.1, there are predicates for >dates (date.pl) and random number generators (random.pl). I think these >may be in your directory already. You'll have to look in these library >files to see which predicates you'll need. Yes, I found both files in the library. Thank you (and Fernando Pereira who answered by mail)! The random number generator works fine but the consulting of 'date.pl' wasn't successful: ---------------------------------------------------------------------- gandalf:~/prolog/dp 104> prolog Quintus Prolog Release 2.5.1 (DECstation 3100, Ultrix 3.1) Copyright (C) 1990, Quintus Computer Systems, Inc. All rights reserved. 1310 Villa Street, Mountain View, California (415) 965-7700 | ?- [library(date)]. [consulting /private/projects/quintus/generic/qplib2.5.1/library/date.pl...] [consulting /private/projects/quintus/generic/qplib2.5.1/library/errno.pl...] [errno.pl consulted in module errno 0.500 sec 11,884 bytes] ld: Undefined: gmtime localtime [ERROR: Foreign interface, call to Unix "ld" failed (error 413)] [Loading of foreign files NOT completed] [date.pl consulted in module date 1.333 sec 22,508 bytes] yes | ?- ---------------------------------------------------------------------- Then I tried to compile 'date.c' directly: ---------------------------------------------------------------------- gandalf:~/prolog/dp/date 111> gcc date.c date.c: In function `QD4mat': date.c:358: warning: suggest parentheses around && within || ld: Undefined: main QP_atom_from_string collect: /usr/bin/ld returned 1 exit status ---------------------------------------------------------------------- It seems that 'QP_atom_from_string' is not defined. What might help??? Thanx in advance and have a nice weekend, Joern -- Joern Baier (baier@forwiss.uni-passau.de) Jesuitengasse 9 __o D-W8390 Passau _ \<,_ Tel +49/851/35239 (_)/ (_)
Technical Details
Message-ID:
<1992Sep4.185308.12558@tom.rz.uni-passau.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!baierReferences:
<1992Sep3.201023.6191@tom.rz.uni-passau.de> <Bu0yr6.LAC@acsu.buffalo.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.prolog Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!baier From: baier@forwiss.uni-passau.de (Joern Baier) Subject: Re: Time and Date in Quintus P. Message-ID: <1992Sep4.185308.12558@tom.rz.uni-passau.de> Sender: news@tom.rz.uni-passau.de (News-Operator) Nntp-Posting-Host: gandalf.forwiss.uni-passau.de Organization: University of Passau, Germany References: <1992Sep3.201023.6191@tom.rz.uni-passau.de> <Bu0yr6.LAC@acsu.buffalo.edu> Date: Fri, 4 Sep 1992 18:53:08 GMT Lines: 58