Re: eclipse, c++ and linux

From: Joachim Schimpf <js10_at_icparc.ic.ac.uk>
Date: Tue 16 Mar 1999 05:55:28 PM GMT
Message-ID: <36EE9B10.42877E5C@icparc.ic.ac.uk>
Jens Scharnow wrote:
> 
> I tried to include a c++ library from eclipse. I use the load/1
> predicate. With SunOs this works fine. Under linux (debian 2.1, gcc
> 2.7.2.3, glibc) I get the following messages
> 
> [eclipse 1]: load('lost.o').
> lost.o: ELF file's phentsize not the expected size
> general error in load('lost.o')


On Linux and Solaris load/1 expects .so files, e.g.


sheep: gcc -I/usr/local/eclipse/4.1/include/i386_linux -shared
eg_c_external.c -o eg_c_external.so

sheep: eclipse
ECLiPSe Constraint Logic Programming System [kernel]
Version 4.1.0, Copyright IC-Parc and ICL, Sun Feb 21 18:37 1999
[eclipse 1]: load("eg_c_external.so").

yes.


------------------------------------------------------------------------
 Joachim Schimpf                /               phone: +44 171 594 8187
 IC-Parc, Imperial College     /              mailto:J.Schimpf@ic.ac.uk
 London SW7 2AZ, UK           /      http://www.icparc.ic.ac.uk/eclipse
Received on Tue Mar 16 17:58:30 1999

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