Thread overview
10 Minutes to Expat in D
Jan 28, 2005
pragma
Jan 29, 2005
pragma
January 28, 2005
I managed to get expat to compile under DMC.  As it turns out, it's not that hard at all.

Details are posted on my website:

http://www.djsolaries.com/pragma/index.php?entryid=70

The gist of it is that you need to hack-in some settings so it compiles correctly.  I've outlined a method that's a little more overt than masquerading as MSVC6.  Once you have .obj files to play with, there's almost no need to build a .lib.  Just throw them on the command line to DMD, along with your .d files, and you're all set.

- EricAnderton at yahoo
January 29, 2005
pragma wrote:

> I managed to get expat to compile under DMC.  As it turns out, it's not that hard at all.
> 
> Details are posted on my website:
> 
> http://www.djsolaries.com/pragma/index.php?entryid=70
> 
> The gist of it is that you need to hack-in some settings so it compiles
> correctly.  I've outlined a method that's a little more overt than
> masquerading
> as MSVC6.  Once you have .obj files to play with, there's almost no need
> to
> build a .lib.  Just throw them on the command line to DMD, along with your
> .d files, and you're all set.

On linux I've just copied D binding file, imported it and added -L-lexpat to Makefile. I haven't tested this fully but everything seems to work just as you wrote on your site. Are you going to provide full import file? That is what I'm most interested in. I guess I can easily add new functions but I do not wish to duplicate your work.


-- 
Dawid Ciężarkiewicz | arael
jid: arael@fov.pl
January 29, 2005
In article <ctejsr$ur0$1@digitaldaemon.com>, Dawid =?ISO-8859-2?Q?Ci=EA=BFarkiewicz?= says...
>
>On linux I've just copied D binding file, imported it and added -L-lexpat to Makefile. I haven't tested this fully but everything seems to work just as you wrote on your site. Are you going to provide full import file? That is what I'm most interested in. I guess I can easily add new functions but I do not wish to duplicate your work.
>

My sincerest apologies for getting this out so late.  My CMS had a small quirk when linking the file to the outside world; the path wasn't resolving correctly, plus the attachment headers were all wrong.

http://www.djsolaries.com/pragma/media.php?id=25

Now a little warning: I banged this out in about 30 minutes, and only really made sure it compiles.  There's no telling if I didn't accidentally dropped any parameters or left out some handles entirely.  Hopefully, that'll be easy enough to check once it gets used for some real work.

I've also linked it as a comment to the webpage I provided earlier.  Enjoy!

- EricAnderton at yahoo