users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking prolog code


From: Jose Maria Peña
Subject: Linking prolog code
Date: Tue, 09 Jan 2001 20:18:46 +0100

Hi:

I want to put together some pieces of code in a small project. Most of
the
files are C, but I also need to include some Prolog code for some
control
features. There are some Assembler and other weird stuff in the project.

Do I need to compile the whole project with 'gplc'? Do I have any
solution
like:?
    - Using gplc: Generate  an object file from my prolog sources and
from
        any file that calls prolog from C (via 'Pl_Query_Start')
    - Compile the other files using gcc and other compilers to generate
.o
       files. Such as:
                gplc -c controler.pl
                gplc -c prolog_control_interface.c

    - Finally, link everything using gplc or ld with the appropriate
libraries
       (I don't know exactly which).

I don't want to re-write everything in C or Prolog and I wish to use
different tools to build the project and I need to link with some
libraries.

I remember there was a similar question a lot of time ago but I couldn't

find it in my mailbox. If it is so, would somebody submit it again to
the
list?.

Thanks in advance,
    Chema

Attachment: jmpena.vcf
Description: Card for Jose Maria Peña


reply via email to

[Prev in Thread] Current Thread [Next in Thread]