home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / prolog / 1656 < prev    next >
Encoding:
Text File  |  1992-09-04  |  2.6 KB  |  71 lines

  1. Newsgroups: comp.lang.prolog
  2. Path: 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
  3. From: baier@forwiss.uni-passau.de (Joern Baier)
  4. Subject: Re: Time and Date in Quintus P.
  5. Message-ID: <1992Sep4.185308.12558@tom.rz.uni-passau.de>
  6. Sender: news@tom.rz.uni-passau.de (News-Operator)
  7. Nntp-Posting-Host: gandalf.forwiss.uni-passau.de
  8. Organization: University of Passau, Germany
  9. References: <1992Sep3.201023.6191@tom.rz.uni-passau.de> <Bu0yr6.LAC@acsu.buffalo.edu>
  10. Date: Fri, 4 Sep 1992 18:53:08 GMT
  11. Lines: 58
  12.  
  13. In article <Bu0yr6.LAC@acsu.buffalo.edu> v104n55k@ubvmsd.cc.buffalo.edu (David I Schwartz) writes:
  14. >[...]
  15. >Check out your library files. In version 3.1.1, there are predicates for 
  16. >dates (date.pl) and random number generators (random.pl). I think these
  17. >may be in your directory already. You'll have to look in these library
  18. >files to see which predicates you'll need.
  19. Yes, I found both files in the library. Thank you (and Fernando Pereira who
  20. answered by mail)!
  21. The random number generator works fine but the consulting of 'date.pl'
  22. wasn't successful:
  23.  
  24. ----------------------------------------------------------------------
  25. gandalf:~/prolog/dp 104> prolog
  26.  
  27. Quintus Prolog Release 2.5.1 (DECstation 3100, Ultrix 3.1)
  28. Copyright (C) 1990, Quintus Computer Systems, Inc.  All rights reserved.
  29. 1310 Villa Street, Mountain View, California  (415) 965-7700
  30.  
  31. | ?- [library(date)].
  32. [consulting /private/projects/quintus/generic/qplib2.5.1/library/date.pl...]
  33.  [consulting /private/projects/quintus/generic/qplib2.5.1/library/errno.pl...]
  34.  [errno.pl consulted in module errno 0.500 sec 11,884 bytes]
  35. ld:
  36. Undefined:
  37. gmtime
  38. localtime
  39. [ERROR: Foreign interface, call to Unix "ld" failed (error 413)]
  40.  [Loading of foreign files NOT completed]
  41. [date.pl consulted in module date 1.333 sec 22,508 bytes]
  42.  
  43. yes
  44. | ?-
  45. ----------------------------------------------------------------------
  46.  
  47. Then I tried to compile 'date.c' directly:
  48.  
  49. ----------------------------------------------------------------------
  50. gandalf:~/prolog/dp/date 111> gcc date.c
  51. date.c: In function `QD4mat':
  52. date.c:358: warning: suggest parentheses around && within ||
  53. ld:
  54. Undefined:
  55. main
  56. QP_atom_from_string
  57. collect: /usr/bin/ld returned 1 exit status
  58. ----------------------------------------------------------------------
  59.  
  60. It seems that 'QP_atom_from_string' is not defined.
  61.  
  62. What might help???
  63.  
  64. Thanx in advance and have a nice weekend,
  65.             Joern
  66. -- 
  67. Joern Baier     (baier@forwiss.uni-passau.de) 
  68. Jesuitengasse 9        __o
  69. D-W8390 Passau          _ \<,_
  70. Tel +49/851/35239     (_)/ (_)
  71.