[Prev][Next][Index][Thread]

Re: HARLEQUIN DYLAN and C FFI



"Shawn" <shawn@anarchy-arts.com> writes:

> Does anyone know how to add a c lib to the dylan IDE so that it can
> be linked and called ?

In the Dylan libraries where I need to link to a c library I added the
following entry in the .hdp file:

c-libraries:	c:\some-directory\thelib.lib

I had to put an explicit path in. I think I edited the .hdp file
directly to do it but I can't recall why. This was in a HD 1.1 project
so just adding from the IDE may work in later versions.

> Can you also call a DLL written in another language the same way ?

If you have an import library to link against or you use
GetProcAddress and LoadLibrary then you should be able to.

Chris.
-- 
http://www.double.co.nz/dylan






Follow-Ups: