digitalmars.D - Carbon for D
- Sha Chancellor (11/11) Jul 22 2004 I'm rather inexperienced in making interfaces for D. I'm trying to
- J C Calvarese (12/25) Jul 22 2004 As far as I know, the official version of SWIG doesn't support D.
- Sha Chancellor (5/30) Jul 22 2004 I was using Andy's I don't see where to download John's modified versio...
I'm rather inexperienced in making interfaces for D. I'm trying to make a carbon interface for D. I tried SWIG with D but I get tons of errors in the interface file i made via: gcc Carbon_stub.h -E -framework ..../Carbon.framework. //Which basically leaves me with one header file for all of Carbon.I added a %module Carbon and tried to get it to generate me an interface. Am I even going about this in a sane manor? Has anyone already done this? I tried to do this by hand before but there's nearly 900,000 lines of code in this file. (sorry for the formatting my newsreader is having personal problems.)
Jul 22 2004
Sha Chancellor wrote:I'm rather inexperienced in making interfaces for D. I'm trying to make a carbon interface for D. I tried SWIG with D but I get tons of errors in the interface file i made via:As far as I know, the official version of SWIG doesn't support D. Are you using John Fletcher's new SWIG work? http://www.prowiki.org/wiki4d/wiki.cgi?DwithSwig Or perhaps the earlier project by Andy Friesen? http://andy.tadan.us/d/ I don't know if Andy plans on updating/improving his stuff any, but I know that John Fletcher was working with SWIG only a few weeks ago.gcc Carbon_stub.h -E -framework ..../Carbon.framework. //Which basically leaves me with one header file for all of Carbon.I added a %module Carbon and tried to get it to generate me an interface. Am I even going about this in a sane manor? Has anyone already done this? I tried to do this by hand before but there's nearly 900,000 lines of code in this file.Sounds like some automation would come in handy!(sorry for the formatting my newsreader is having personal problems.)-- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Jul 22 2004
In article <cdpecb$15pd$1 digitaldaemon.com>, J C Calvarese says...Sha Chancellor wrote:I was using Andy's I don't see where to download John's modified version. =/ Although i did see the entry in the wiki.I'm rather inexperienced in making interfaces for D. I'm trying to make a carbon interface for D. I tried SWIG with D but I get tons of errors in the interface file i made via:As far as I know, the official version of SWIG doesn't support D. Are you using John Fletcher's new SWIG work? http://www.prowiki.org/wiki4d/wiki.cgi?DwithSwig Or perhaps the earlier project by Andy Friesen? http://andy.tadan.us/d/I don't know if Andy plans on updating/improving his stuff any, but I know that John Fletcher was working with SWIG only a few weeks ago.Yes it would. :) Want to 'automate' it for me? :Pgcc Carbon_stub.h -E -framework ..../Carbon.framework. //Which basically leaves me with one header file for all of Carbon.I added a %module Carbon and tried to get it to generate me an interface. Am I even going about this in a sane manor? Has anyone already done this? I tried to do this by hand before but there's nearly 900,000 lines of code in this file.Sounds like some automation would come in handy!(sorry for the formatting my newsreader is having personal problems.)-- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Jul 22 2004