www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to generate D binding with SWIG?

reply "Suliman" <evermind live.ru> writes:
I am still trying to get GDAL[1] work with D. I found tool for 
automatic binding generation it's named SWIG[2].

I looked at gdal binding examples, and look like all of them are 
automatically generated with SWIG. I am not sure, but possible 

makefile.vs:

....
csharp: gdalvars
         cd csharp
         $(MAKE) /f makefile.vc interface
         $(MAKE) /f makefile.vc
....

Could anybody help to help me to do шею I have not enough 
knowledge to understand what I should to do.

If anybody can generate it's for me I would very pleased for it. 
Because gdal is very needed lib for geoinformaic tasks.

[1] http://trac.osgeo.org/gdal/wiki/DownloadSource
[2] http://www.swig.org/
Apr 06 2015
parent reply "Jeremy DeHaan" <dehaan.jeremiah gmail.com> writes:
Do you even need to use swig? It looks like gdal has  a C 
interface. I think that htod would be what you're looking for

http://dlang.org/htod.html
Apr 06 2015
parent reply "ddos" <oggs gmx.at> writes:
On Monday, 6 April 2015 at 15:46:32 UTC, Jeremy DeHaan wrote:
 Do you even need to use swig? It looks like gdal has  a C 
 interface. I think that htod would be what you're looking for

 http://dlang.org/htod.html
+1 for htod if there is a c interface!
Apr 06 2015
parent "Suliman" <evermind live.ru> writes:
some time ago I tried it, but without success
http://forum.dlang.org/thread/hnlrhschfgumaxzgizma forum.dlang.org
Apr 06 2015