Hi,

I am using:

GNU Prolog 1.4.4 (64 bits)
Compiled DecĀ  1 2017, 19:56:55 with gcc
By Daniel Diaz
Copyright (C) 1999-2013 Daniel Diaz

running on a ubuntu machine:

Linux simon-Leopard-Extreme 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I am extending gprolog with a significant library of crypto functions in C and in general this works very well. The only exception is that the new instance of gprolog, extended with these functions ignores the '--init-goal', '--query-goal' command line arguments. These are useful for running the prolog application from a cron job, for example.

"Fortunately", *your own example* in /usr/local/gprolog-1.4.4/examples/ExamplesC manifests the same problem, so I need not burden you with all of my code.

For example, when I build your example and compare the operation of the new executable with that of the base gprolog, I get:


sjswc@simon-Leopard-Extreme:ExamplesC$ gprolog --query-goal "format('Hi Mom', [])"
GNU Prolog 1.4.4 (64 bits)
Compiled May 15 2017, 21:17:39 with gcc
By Daniel Diaz
Copyright (C) 1999-2013 Daniel Diaz
| ?- format('Hi Mom', []).
Hi Mom

yes
| ?-

sjswc@simon-Leopard-Extreme:ExamplesC$ ./examp --query-goal "format('Hi Mom', [])"
GNU Prolog 1.4.4 (64 bits)
Compiled May 15 2017, 21:17:39 with gcc
By Daniel Diaz
Copyright (C) 1999-2013 Daniel Diaz
| ?-

Everything else works perfectly. Have I misunderstood what is supposed to happen or is this a bug?

Regards

Simon Curry

_______________________________________________
Bug-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-prolog

Reply via email to