home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / prolog / 2451 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.0 KB

  1. Path: sparky!uunet!ogicse!usenet.coe.montana.edu!rpi!usenet.rpi.edu!sanded
  2. From: sanded@rpi.edu (David T. Sanders)
  3. Newsgroups: comp.lang.prolog
  4. Subject: BinProlog Newbie question
  5. Message-ID: <SANDED.93Jan26003330@rebecca.rpi.edu>
  6. Date: 26 Jan 93 05:33:30 GMT
  7. Article-I.D.: rebecca.SANDED.93Jan26003330
  8. Distribution: comp.lang.prolog
  9. Organization: Rensselaer Polytechnic Institute
  10. Lines: 25
  11. Nntp-Posting-Host: rebecca.its.rpi.edu
  12.  
  13.  
  14. I want to run the program entitiled 'hello.pl'
  15.  
  16. mes(hello).
  17. mes(world):-statistics.
  18.  
  19. main(X):-mes(X).
  20.  
  21. The following happens:
  22.  
  23. ~/binpro1.43/progs (650) bp hello.pl
  24. BinProlog 1.43: Copyright (C) Paul Tarau-1992
  25.  
  26. begin loading hello.pl...
  27. ...finished loading
  28. error: *** no definition for: main/1 ***
  29.  
  30. I tried to compile and/or run the program in the interactive mode, but
  31. I can only do so after typing boot. I'm pretty confident I'm not
  32. supposed to bootstrap it every time I run BinProlog. I'd like to be
  33. able to run the program from the command line. What am I missing?
  34. Please send email to sanded@rpi.edu
  35.  
  36. Thanks,
  37. David T. Sanders
  38.