llvm-d

Moritz Maxeiner moritz at ucworks.org
Sat Mar 23 03:01:18 PDT 2013


On Saturday, 23 March 2013 at 04:34:53 UTC, Chris Cain wrote:
> On Friday, 15 March 2013 at 17:40:36 UTC, Moritz Maxeiner wrote:
>> Hi, I would like to announce llvm-d, which provides LLVM 
>> bindings for D.
>
> Greetings,
>
> I hope you don't mind a bit of a support request, but I'm 
> having difficulties getting it to work:
>
> https://gist.github.com/Zshazz/c7dbd6eee0b6b242252b
>
> The code is from 
> http://npcontemplation.blogspot.com/2008/06/secret-of-llvm-c-bindings.html 
> but with slight updates (and obviously fixing syntax to work in 
> D).
>
> This is running on Manjaro Linux (a derivative of Archlinux) 
> and using DMD v2.062.
>
> Thanks for your time.

No problem at all. There is an example quoted in the README and 
how to compile it, so without further information form your side 
I don't know what the problem is. To get the example from the 
README working:
- Download/Clone the github repo into a folder (let's say llvm-d)
- cd into that folder
- execute rdmd -L-ldl sample/multithreaded.d

The need for the -dl flag is only for POSIX platforms and will be 
gone with the next commit as I have included a lib pragma.

If the above doesn't help could you please tell me what exactly 
you have done and at which point you have the problems?

-- Moritz


More information about the Digitalmars-d-announce mailing list