I hear voices, wait a minute, that's not what I've meant.
I've heard there are more and more people interested in DDL (D Dynamic Libraries)
under Linux. This is first of short series of posts that will
describe some changes I've made in h3r3tic's team0xF's repo.
I suppose you have dmd, tango and rebuild ready.
First, grab a copy of team0xf ext repo:
- hg clone http://team0xf.com:8080/ext
The changes in team0xf repo will probably be commited to ddl's official repo,
so don't overkill their machine ;>
Now add ext/ddl to your include path either in dmd.conf, or
pass it directly on the command line.
I've dropped simple example in ext/ddl/ddl/Sample.
You can take a look at example on codepad
For using reflections we need map file that will be
used by DDL, there is -Map switch for ld linker:
- rebuild -oqOBJS -clean -L-Map -Ltest01.map testReflection01.d
I was to lazy to write parser for ld-generated mapfile, and instead of that
I've written small shell-script, that convert's map to a format that
should be understandable by INSITU parser :->
Converting mapfile overrites the original, so if you need it for
any reasons, make a copy of it.
To convert the map file:
- ../Contrib/fixmap.sh test01.map
Now you should be able to run executable, and get proper results.
This is just some initial stuff, I haven't commited most (ca 90%) of changes
I've made, so more cool things are coming, stay tuned.
gim.org.pl is down






