digitalmars.D.learn - htod question
- Dibyendu Majumdar (4/4) Jan 21 2016 I tried using htod but got errors as it could not handle the std
- W.J. (6/11) Jan 21 2016 And probably never will. D doesn't have a preprocessor so it's
- Dibyendu Majumdar (3/4) Jan 21 2016 I am trying to create bindings for existing C library so I was
- Dibyendu Majumdar (4/8) Jan 21 2016 The library includes various C header files ... causing htod to
- W.J. (5/14) Jan 21 2016 I see. I didn't quite understand your question correctly. I
- Sebastiaan Koppe (5/14) Jan 23 2016 Yeah, htod often requires preparing the files your trying to
- Jacob Carlborg (7/9) Jan 22 2016 You could try DStep [1]. Although I'm not entirely sure if it works on
I tried using htod but got errors as it could not handle the std C header files (Visual C++). How do people work around this? Thanks and Regards Dibyendu
Jan 21 2016
On Friday, 22 January 2016 at 00:31:01 UTC, Dibyendu Majumdar wrote:I tried using htod but got errors as it could not handle the std C header files (Visual C++).And probably never will. D doesn't have a preprocessor so it's kind of hard to automate the process.How do people work around this? Thanks and Regards DibyenduThey don't. Counter question: What's so bad about the D std library ?
Jan 21 2016
On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote:Counter question: What's so bad about the D std library ?I am trying to create bindings for existing C library so I was trying to use htod for that.
Jan 21 2016
On Friday, 22 January 2016 at 01:03:09 UTC, Dibyendu Majumdar wrote:On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote:The library includes various C header files ... causing htod to failCounter question: What's so bad about the D std library ?I am trying to create bindings for existing C library so I was trying to use htod for that.
Jan 21 2016
On Friday, 22 January 2016 at 01:04:50 UTC, Dibyendu Majumdar wrote:On Friday, 22 January 2016 at 01:03:09 UTC, Dibyendu Majumdar wrote:I see. I didn't quite understand your question correctly. I thought you were trying to port over the std c library. Maybe you can give an example ?On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote:The library includes various C header files ... causing htod to failCounter question: What's so bad about the D std library ?I am trying to create bindings for existing C library so I was trying to use htod for that.
Jan 21 2016
On Friday, 22 January 2016 at 01:04:50 UTC, Dibyendu Majumdar wrote:On Friday, 22 January 2016 at 01:03:09 UTC, Dibyendu Majumdar wrote:Yeah, htod often requires preparing the files your trying to convert. Often removing macro's and the like. Its a manual process, and it can get dirty.On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote:The library includes various C header files ... causing htod to failCounter question: What's so bad about the D std library ?I am trying to create bindings for existing C library so I was trying to use htod for that.
Jan 23 2016
On 2016-01-22 01:31, Dibyendu Majumdar wrote:I tried using htod but got errors as it could not handle the std C header files (Visual C++). How do people work around this?You could try DStep [1]. Although I'm not entirely sure if it works on Windows. It uses libclang, so if Clang can handle the header file it should work in DStep as well. [1] https://github.com/jacob-carlborg/dstep -- /Jacob Carlborg
Jan 22 2016