digitalmars.D.learn - Linux and htod
- fbmac (2/2) Jun 16 2016 How people use it on Linux, if htod is required to import C
- ketmar (2/4) Jun 16 2016 we don't.
- Dicebot (3/5) Jun 16 2016 People don't use htod. https://github.com/jacob-carlborg/dstep is
- fbmac (3/8) Jun 16 2016 Thanks, I'll check it out. This was always a barrier for me to
- bachmeier (11/13) Jun 16 2016 Just to clarify, so as to prevent confusion by someone that
- yawniek (3/16) Jun 16 2016 https://wiki.dlang.org/D_binding_for_C is also helpful
How people use it on Linux, if htod is required to import C libraries and windows only?f
Jun 16 2016
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:How people use it on Linux, if htod is required to import C libraries and windows only?fwe don't.
Jun 16 2016
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:How people use it on Linux, if htod is required to import C libraries and windows only?fPeople don't use htod. https://github.com/jacob-carlborg/dstep is best what one can be for plain binding generation.
Jun 16 2016
On Thursday, 16 June 2016 at 12:39:00 UTC, Dicebot wrote:On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:Thanks, I'll check it out. This was always a barrier for me to take the effort of learning DHow people use it on Linux, if htod is required to import C libraries and windows only?fPeople don't use htod. https://github.com/jacob-carlborg/dstep is best what one can be for plain binding generation.
Jun 16 2016
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:How people use it on Linux, if htod is required to import C libraries and windows only?fJust to clarify, so as to prevent confusion by someone that randomly stumbles across this post, you do not need htod, dstep, or any other tool to call C libraries from D. dstep generates bindings to C libraries for you. You can create the bindings yourself in your D source files, and if you only want to call a couple of functions from a particular C library, that's the most convenient. http://dlang.org/spec/interfaceToC.html The wording of the question implies that one of these tools is required to call into C libraries, which is not correct.
Jun 16 2016
On Thursday, 16 June 2016 at 19:04:38 UTC, bachmeier wrote:On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:https://wiki.dlang.org/D_binding_for_C is also helpful they should be put together.How people use it on Linux, if htod is required to import C libraries and windows only?fJust to clarify, so as to prevent confusion by someone that randomly stumbles across this post, you do not need htod, dstep, or any other tool to call C libraries from D. dstep generates bindings to C libraries for you. You can create the bindings yourself in your D source files, and if you only want to call a couple of functions from a particular C library, that's the most convenient. http://dlang.org/spec/interfaceToC.html The wording of the question implies that one of these tools is required to call into C libraries, which is not correct.
Jun 16 2016