D Derelict test program macOS
I'm trying to do a minimal program with graphics in the D programming language (dlang.org) using Derelicts Allegro binding on macOS. I used brew install allegro.
Has any one else gotten Allegro 5 going with D on macOS?
I run it with DAllegro in Linux. It works fine.
At a quick glance, DerelictAllegro looks like it's not maintained anywhere near that of DAllegro and may be behind in Allegro 5 versions. I'm not a big fan of the naming convention either. But if it works for you, that's cool.
Hm, what error message are you getting?
Program exited with code -11
Right, tried running it in the debugger?
No, I haven't discovered debuggers. [snip]
I don't know how, or if I can use a debugger in D on macOS.
Looks like it's a thread-related issue. It works when DISPLAY is marked __gshared, or the declaration is moved inside the function literal. That means it's an issue with the binding and not Allegro.
Thread #616943. Printed from Allegro.cc
Sorry, I totally missed your error message on your code on my screen width. I thought you were just asking about people's experiences with D and Allegro.