Re: compiling and loading an external predicate with Suse Linux

From: Benjamin Roe <ben_at_benroe.com>
Date: Mon 16 Dec 2002 01:22:21 PM GMT
Message-Id: <1040044942.414.4.camel@blackbox>
I found it easiest to just use the makefile that comes with the Eclipse
distribution in $ECLIPSEDIR/lib/$ARCH. It works on my Debian Linux
system - just "make external.so".


On Fri, 2002-12-13 at 14:01, Ulrich Scholz wrote:

> g++ -I$ECLIPSEDIR/include/$ARCH eg_cc_external.cc
> $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
Received on Mon Dec 16 13:44:01 2002

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