Re: compiling and loading an external predicate with Suse Linux

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Mon 16 Dec 2002 12:37:53 PM GMT
Message-ID: <3DFDC921.4EAF899D@icparc.ic.ac.uk>
Ulrich Scholz wrote:
> 
> Please could someone post a working example including the command lines to
> complie and the ECLiPSE commands to load the code and use the predicates.


cow: g++ -shared -o eg_cc_external.so -I/usr/local/eclipse/release/include/i386_linux
eg_cc_external.cc
cow: eclipse
ECLiPSe Constraint Logic Programming System [kernel]
Copyright Imperial College London and ICL
Certain libraries copyright Parc Technologies Ltd
GMP library copyright Free Software Foundation
Version 5.5 #46, Thu Nov 21 00:13 2002
[eclipse 1]: load("eg_cc_external.so").

Yes (0.00s cpu)
[eclipse 2]: external(sl/2,p_sumlist).

Yes (0.00s cpu)
[eclipse 3]: sl([1,2,3],L).

L = 6
Yes (0.00s cpu)


-- 
 Joachim Schimpf              /             phone: +44 20 7594 8187
 IC-Parc, Imperial College   /            mailto:J.Schimpf@ic.ac.uk
 London SW7 2AZ, UK         /    http://www.icparc.ic.ac.uk/eclipse
Received on Mon Dec 16 12:38:42 2002

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:19 PM GMT GMT