Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 724699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:15:10+00:00 2026-05-14T06:15:10+00:00

Upon loading into a C++ program a Prolog program that contains the command ‘send’

  • 0

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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:15:10+00:00Added an answer on May 14, 2026 at 6:15 am

    @ is apparently unknown!

    It is loaded by the ‘rc’ file in the SWI home dir and realizes the XPCE binding. I should load this by hand, using:

    consult( swi( 'plwin.rc' ) )
    

    All my pl and xpce source files were compiled successfully.

    I am interfacing C++ and Prolog to connect a cognitive architecture written in Prolog to a robotic simulator written in C++. I am using SWI version 5.8.0 so I had to use the following line in my C++ program to achieve that:

    PlCall( "consult( swi( 'plwin.rc' ) )" );
    

    This command resulted in:

    swi(plwin.rc) compiled into link_xpce
    

    Thanks to Jan Wielemaker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am loading some html via $.get() into a Jquery-dialog-popup. Upon clicking a link
I have a jQuery plugin that uses a needle gauge. Upon initially loading a
I have a form that is populated with mySQL db values upon loading the
Upon reviewing a bunch of MVC style web applications, I'm noticing that it's common
I'm trying load a 3rd party DLL but I get an error when attempting
I am working with the Adobe Flash ocx by loading it into my C++
At the moment, I have a goal of writing an application that contains a
Within a webpage, upon loading, I fill a dataset with two table with a
I'm trying to create an iOS application which upon loading, will initially connect via
From wikipedia: Dynamic loading is a mechanism by which a computer program can, at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.