GNU PROLOG
==========
INTRODUCTION
GNU Prolog is a native Prolog compiler with constraint solving over finite domains (FD) developed by Daniel Diaz (http://cri-dist.univ-paris1.fr/diaz/) Last information can be found at http://www.gnu.org/software/prolog or better at http://www.gprolog.org.
A lot of work has been devoted to the ISO compatibility. GNU Prolog is very close to the ISO standard.
Here are some features of GNU Prolog:
Prolog system:
Compiler:
Constraint solver:
PORTS
GNU Prolog is currently ported to the following architectures:
INSTALLATION
Please refer to the INSTALL file (in the same directory)
USING GNU PROLOG
Be sure that adequate environment variables are set (see INSTALL)
You can then invoke the top-level using:
gprolog
and the compiler using:
gplc FILE
The simplest way to compile a Prolog file 'prog.pl' is then:
gplc prog.pl
which will produce the executable called prog (use gplc --help to have a brief overview of available options).
Refer to the documentation for more information (see below).
WINDOWS
In Microsoft Windows if you intend to use the gplc compiler as described in the documentation you need to ascertain the following conditions are met:
for the port compiled with Microsoft Visual C++ (aka MSVC++) (tested with Microsoft Visual Studio 2019 Community) you'll need MinGW as.exe (renamed as mingw-as.exe) installed and the cl.exe compiler (used mainly as linker by GNU Prolog) available in your session path (alternatively link.exe is used).
for the ports compiled either with MinGW, the gcc toolchain must be installed and available in your session path.
Observing these needs you'll also will be able to do the mixed language programming, as the examples included in the ExamplesC directory. However you'll need to write your own Makefile as the one provided is for gplc calling 'gcc' and the options passed by GNU Prolog will not work (see file ExamplesC/README).
DOCUMENTATION
The directory doc contains various versions of the manual. Refer to the file doc/README for more information.
An in-line HTML version can be accessed from the GNU Prolog web page.
WEB
The GNU Prolog web site is: http://www.gnu.org/software/prolog/ or also (primary web site): http://www.gprolog.org/
MAILING LIST
To communicate with other GNU Prolog users and/or implementors send a mail to users-prolog@gnu.org. To (un)subscribe to this mailing list send a mail to users-prolog-request@gnu.org with (un)subscribe in the subject line.
BUGS
Please report bugs to bug-prolog@gnu.org. To (un)subscribe to this mailing list send a mail to bug-prolog-request@gnu.org with (un)subscribe in the subject line.
COPYING
GNU Prolog is free software. Since version 1.4.0, GNU Prolog distributed under a dual license: LGPL or GPL. So, you can redistribute it and/or modify it under the terms of either:
or
or both in parallel (as here).
GNU Prolog is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received copies of the GNU General Public License and the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Remark: versions of GNU Prolog prior to 1.4.0 were entirely released under the GNU General Public License (GPL).