Upon loading into a C++ program a Prolog program that contains the command 'send' (xpce graphics), I get error messages of type:
Syntax Error: Operator Expected.
Here is an example command that causes the errors:
send( Dialog, append, button(continue, message(@prolog, clear_my_blackboard)) ),
I used to get the same errors when I used the plld.exe utility for interfacing my C++ and Prolog programs. At the time, I thought the problem was that plld was for some reason incompatible with xpce graphics.
But now that I consult (load) my Prolog source files into my C++ files using:
PlCall( "consult(myPrologFile.pl)" );
I still get these error messages. I could comment out the lines that contain xpce-specific commands, but I'd rather know what the problem is and how I can circumnavigate it. So, I would appreciate any help.
Cheers,