Hello,
I've used makefile to generate the libclips++.a and used codeblocks to link to it, along with the clips.h file.
I #include "clips.h" in my main.cpp file, and it seems the linking is working.
However, when I try to run any clips functions, it always returns an error.
Here are specific questions I have:
1.I tried typing in the basic functions of clips, such as run(), or load(), but it always suggests "EnvRun()" or "EnvLoad" or "EnvInitializeFacts()".
Is this normal?
2. When I try out Envrun() or EnvClear() I get the errors :
||=== Build: Debug in ctest (compiler: GNU GCC Compiler) ===|
/home/diandian/Diana/cpp/ctest/main.cpp||In function ‘int main()’:|
/home/diandian/Diana/cpp/ctest/main.cpp|9|error: too few arguments to function ‘void EnvClear(void*)’|
/home/diandian/Diana/cpp/cpplinker/obj/constrct.h|156|note: declared here|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
How should I go about fixing this?
3. What are the standard function names for CLIPS functions in C++? Are they simply run(), load().....?
Thanks!
Diana