[Prev][Next][Index][Thread]
Re: HARLEQUIN DYLAN and C FFI
-
To: info-dylan@ai.mit.edu
-
Subject: Re: HARLEQUIN DYLAN and C FFI
-
From: Chris Double <chris@double.co.nz>
-
Date: Fri, 28 Jan 2000 05:15:01 -0500 (EST)
-
Organization: None.
-
References: <rEbk4.965$xk3.71634@news.uswest.net>
-
Sender: Chris.Double@DOUBLEC
-
User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) Emacs/20.4
-
Xref: traf.lcs.mit.edu comp.lang.dylan:11505
"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: