Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22113

C++ - Integration of CLIPS (rule engine) [duplicate]

$
0
0

I'm trying to integrate CLIPS into my C++ application (QT-project). I already have included the source and header files to the projects. I'm now trying to compile the downloaded source code to see if my basic call within main is working. I'm stuck with the error codes below and do not know to solve them. I also do not want to change the source code of CLIPS which should be just integrated.

void *env;env = CreateEnvironment();// The file hello.clp must be in the same directory// as the CLIPS executable or you must specify the// full directory path as part of the file name.EnvLoad(env, "hello.clp");EnvReset(env);EnvRun(env,-1);DestroyEnvironment(env);

Compiling the code leads to the errors:

...\function\core\object.h:113: Fehler: expected unqualified-id before ',' token SLOT_DESC *slots,

and

...\function\core\object.h:211: Fehler: expected unqualified-id before ';' token *slots;

The error points to the code:

struct instance  {    ....   INSTANCE_SLOT **slotAddresses,                 *slots;  };

and

struct defclass  {    ...   SLOT_DESC *slots,             **instanceTemplate;    ...  };

This is not my own code I'm just trying to use the functionality provided by CLIPs and integrate it into my own application. CLIPS Programming Guide


Viewing all articles
Browse latest Browse all 22113

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>