How to compile helloworld.d from gtkd on arch linux

Alaindevos devosalain at ymail.com
Sat Oct 3 04:30:29 UTC 2020


On Friday, 2 October 2020 at 17:04:29 UTC, Mike Wey wrote:
> On 02-10-2020 01:43, Alaindevos wrote:
>> Installing gtkd is piece of cake. Just make and make install 
>> of ,
>> https://github.com/gtkd-developers/GtkD
>> But how should i compile e.g.
>> https://github.com/gtkd-developers/GtkD/blob/master/demos/gtk/HelloWorld.d
>> 
>> dmd HelloWorld.d  some_magic_stuff_goes_here_but_what_exactly
>> 
>
> You can use pkg-config to get the compiler flags needed:
>
> ```
> dmd HelloWorld.d `pkg-config --cflags --libs gtkd-3`
> ```

Indeed. I figured that out. Note the minus sign between gtkd and 
3 which is essential.
Currently trying to install gtkd on Freebsd. Compilation worked 
fine.


More information about the Digitalmars-d mailing list