The C Side

After the saved state containing the Prolog predicates and the interface declarations has been created, a C program can access those predicates by using the C functions described in the following sections. Your C program that uses these functions should #include the file IPC/RPC/ccallqp.h to include the extern definitions. The final linker step that creates the main executable must include the file IPC/RPC/system/ccallqp.o. This file contains the C object code that implements the C functions you will be using, and was created at the time your Quintus Prolog system was installed.

See the RPC demo for an example.