Eclipse External Language Interface (C)

From: <gemichael_at_cytanet.com.cy>
Date: Wed 03 Jan 2001 11:58:01 PM GMT
Message-Id: <200101040002.CAA05128@demokritos.cytanet.com.cy>
Hello,

It seems that I can't get Eclipse to call a C function. I have compiled and
linked the C code into a .dll file, which seems to load ok using the
"load('name.dll')" predicate. But, when I use the "external(func/1,
p_func)" predicate, where p_func is defined as:

<<
int p_func(value val, type tag)
{
	Check_Integer(tag);
	Succeed;
}
>>

I get the message:

<<
External function does not exist in external(func / 1, p_func)

*** compilation aborted
	before line 2 in the file //E/driver.pl
calling an undefined procedure end_of_file in module eclipse
>>

I tried to use "external(func/1, _p_func)" instead, but only to get a
different message: 

<<
instantiation fault in external(func / 1, _p_func)

*** compilation aborted
	before line 2 in the file //E/driver.pl
>>

I also tried enclosing p_func and _p_func in double quotes, but the problem
persists.

Am I doing something wrong, or forgetting something? I searched the
documentation, as well as the Internet, but I haven't been successful in
finding anything.

I would be greatly obliged if you could assist me with this problem.

Many thanks,

Loizos Michael
Received on Thu Jan 04 00:02:23 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:02 PM GMT GMT