external "hello world"

From: Andreas Strack <strack_at_i5.informatik.rwth-aachen.de>
Date: Sun 22 Apr 2001 08:16:11 PM GMT
Message-ID: <3AE33C0B.4050509@i5.informatik.rwth-aachen.de>

I'm having problems embedding external C++ functions.
I tried a simple hello_world-predicate like this:

#include <iostream.h>
#include "eclipseclass.h"

int p_hello(void)
  cout << "Hello World!" << endl;
  return EC_succeed;

g++ -I<eclipse-dir>/include/i386_linux -shared -o hello_ecl.so 

Eclipse-User-File: (ecl_hello.pl)
:- load("hello_ecl.so").           

:- external(hello/0,

calling: eclipse -b  ecl_hello.pl gives me the following error:

ELF file's phentsize not the expected size
general error in load("hello_ecl.so")

*** compilation aborted
   before line 2 in the file /home/strack/prologtest/ecl_hello.pl

Does anyone know what this error means and what I did wrong?

Andreas Strack
Received on Sun Apr 22 21:14:46 2001

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