Hi,
Does anyone know how to use the ciao ' foreign_interface '. I wish to drive the prolog with C++ but having looked at the documentation do not know where to start. Can anyone help or supply an example, both for what to put in C and Prolog.
I would be very greatful, Jason Davis.
Does anyone know how to use the ciao ' foreign_interface '. I wish to drive the prolog with C++ but having looked at the documentation do not know where to start. Can anyone help or supply an example, both for what to put in C and Prolog.
We are sorry: there was a problem with the documentation, and some features did not appear reflected there. It is solved now. You may want to download the latest version, or check the directory
lib/foreign_interface/examples
in the source distribution. The file
lib/foreign_interface/foreign_interface_doc.pl
contains a quite complete documentation, and the file
lib/foreign_interface/foreign_interface.pl
contains documentation for all the declarations you can put in a C interface file. Sorry about that: the documentation assertions should have made their way through to the final documentation files, but they did not because of a mistake. Note, however, that the foreign interface is not yet ready to work with C++.
MCL
____________________________________________________________ Don't create a problem for which you do not have the answer.