On 09/10/2016 10:02 AM, Edgar wrote:

Hi!

I'm new to D and Gtkd, and i'm having problems with parallelism. The program crashes immediately after executing with the message "Error: undefined identifier 'XInitThreads'".

This is the command i use to compile the code:

ldc -w -disable-linker-strip-dead main.d extra.d -LX11 `pkg-config --cflags --libs gtkd-3`

with ldc and dmd -L is used to pass flags to the linker, and the correct
linker flag to link with X11 is -lX11.

So you should pass -L-lX11 to ldc instead of just -LX11 to link with the
X11 library.