This is first of promissed posts about DDL under Linux.
If you haven't read previous
post, please do so now, so I won't have to repeat myself.
If you have copy of team0xf ext repo, run hg pull; hg up;
if you don't have it yet, grab it:
- hg clone http://team0xf.com:8080/ext
I've added some new examples in ext/ddl/ddl/Sample subdir.
I've already described how to compile host application in previous post.
Compilation of testPlug01.d and testPlug02_c.c plugins is easy as a pie :]:
- dmd -c testPlug01.d
- gcc -c testPlug02_c.c
testHost01.d
is a sample host application. It loads plugin calls a function from the plugin, creates
an object of class conforming to specified interface, and call some method of that object.
testHost02.d
host application declares a variable that will be accessible by a plugin written in C.
It loads plugin finds a symbol of a function (declared in that plugin) and executes
that function.
Function in plugin changes the variable that is provided by host application
Sorry for short post, but I don't have much time :}.
Currently there is only basic support for object files, some more things are waiting for
being comitted, so again, stay tuned :)
gim.org.pl is down






