users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

foreign predicate not working


From: Saurabh Bhatla
Subject: foreign predicate not working
Date: Mon, 19 Jul 2004 09:25:19 -0500

Hi 
  I am using a foreign predicate from my logtalk object. I define that
in a file receiver.lgt (attached). the definition of my predicate is in
file file_ops.c (attached). I can compile the code in gprolog and am
able to make an executable out of it too. The problem is that whenever i
call the foreign predicate it returns false. I have some printf
statements in my C code but none of them gets printed, which mean that
the c code is not being called at all. 
  I tried to trace the execution and the call to my foreign predicate
simply fails without checking anything. My C program works fine when
executed alone.

 Does anybody know whats going on here..

regards
saurabh
  

Attachment: file_ops.c
Description: Text Data

Attachment: receiver.lgt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]