Subject: Re: .dll made in C++ compiler

From: Jan Wielemaker <[email-masked]>
Date: Wed, 26 Apr 2000 20:33:47 +0200

> 
> 
> I tried to combine a dll module into prolog environment, but it was not
> successful with the following messages.  Another dll, which was compiled
> in C compiler, was all right, though. 
> 
> ************************************************************
> Yes
> ?- load_foreign_library(blunderdll).
> [WARNING: blunderdll: failed to call entry point install]
> 
> No
> ************************************************************
> 
> I am wondering if SWI-Prolog can not integrate dll made in C++ environment
> or there are any other problems.  It will be very much appreciated if
> anybody answer the question.  

Using C++ is ok, but

	* When using the plain interface the install() and uninstall()
	  functions must be declared external "C" to avoid C++ name-mangling.

	* Or use the real C++ interface from

		ftp:swi.psy.uva.nl/pub/SWI-Prolog/BETA/cpp.tgz

	Regards --- Jan