compiling and loading an external predicate with Suse Linux

From: Ulrich Scholz <>
Date: Fri 13 Dec 2002 02:01:43 PM GMT
Message-ID: <>
Hi everybody,

we've tried to compile the example file

with the command 

g++ -I$ECLIPSEDIR/include/$ARCH
$ECLIPSEDIR/lib/$ARCH/libeclipse.a  -L$ECLIPSEDIR/lib/$ARCH -lgmp -lshm
-ldummies -ldl -lnsl -lm

We got the error 

/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

OK, maybe we don't know the correct g++ parameter to compile code without
main.  So we added an empty main() and were able to compile the code.

But loading fails with

/home/scholz/Dissertation/Implemenation/Georg/Docs/a.out: cannot open shared object file: No such
file or directory
shared library not found in load("a.out")

The variables ECLIPSEDIR, ARCH, and LD_LIBRARY_PATH are correcly set to the
values given in the documentation.  

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. 

Thank you very much, Uli

compiler: g++
operating system: Suse Linux
architecture: i386_linux

Ulrich Scholz
Received on Mon Dec 16 12:24:52 2002

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