Dynamic loading of shared libraries.

Kai Meyer kai at unixlords.com
Mon Jun 13 08:40:58 PDT 2011


On 06/12/2011 07:44 AM, Steve Teale wrote:
> Can DMD D2/Linux do this yet?

Sure, why not? Just use libdl. I've attached a zip file that should work 
like this:
$ unzip libdl_example.zip
$ ./build_run.sh
printer1(0)
Valx=5
printer1(0)
Valx=5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libdl_example.zip
Type: application/zip
Size: 1701 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110613/a9d578ac/attachment.zip>


More information about the Digitalmars-d mailing list