Hello,
I am trying to get a C++ program call a Prolog program (in VS2008 IDE).
To make all the Prolog header files available to VS2008, I have copied all the include files onto my VC include folder, such as SWI_Prolog.h, SWI-cpp.h, plterm.h, etc.
However, when I build and compile my program, I get this error:
error LNK2019: unresolved external symbol _PL_new_term_ref . . .
I made sure the error is caused by this line:
goal_term = PL_new_term_ref();
It wouldn't complain when I put:
term_t goal_term;
in my program's header file in the private variables section, but it wouldn't accept this line:
goal_term = PL_new_term_ref();
in my main program. Any idea why I get this error message?
Thank you,