[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prolog and c++
From: |
Hector Palacios |
Subject: |
Re: prolog and c++ |
Date: |
Fri, 4 Oct 2002 12:02:36 -0400 (VET) |
Look at mailing list files. There are another issues.
By example, some c++ keywords are used inside gprolog.h
Actualy, I'm using c++ with gprolog 1.2.12.
That's my code:
-------------
extern "C" {
#define template templ
#include <gprolog.h>
#undef template
}
------------
I don't know if it works on actual version.
I hope this help.
On Fri, 4 Oct 2002, Timo Karjalainen wrote:
> On Wed, 2 Oct 2002, eric pramudya wrote:
>
> > I want to ask you a question on how to 'link' a prolog program to C++. I
> > use C++ as
> > interface (OO). I'm using a Qt Designer (auto code generated) to build this
> > interface.
>
> I suppose you just put extern "C" {?}?around the C interface to GProlog
> and that's it.
>
>
>
--
++++++++++++++++++++++++++++++++++++++++++++++
Hector L. Palacios V. - Dpto. Computacion y TI
Grupo de Inteligencia Artificial
Caracas - Venezuela
+58-212-9063276(Ofic) +58-212-9063243(Fax)
----------------------------------------------
Ama y haz lo que quieras. San Agustin.
++++++++++++++++++++++++++++++++++++++++++++++