Linux & DMD & GtkD

Peter Jacobs peterj at
Tue Feb 19 07:19:26 UTC 2019

On Monday, 18 February 2019 at 14:24:46 UTC, Ron Tarrant wrote:
> On Monday, 18 February 2019 at 10:38:10 UTC, Peter Jacobs wrote:
>> Being an old linux user, I prefer make to dub, however, I do 
>> use dub to build GtkD and then I just use dmd to build my 
>> application program.
> This appeals to me, too.
>> dub clean
>> dub build
> Got this bit working after generating an sdl file. But I think 
> I'm missing something from this next approach:
>> make
>> dmd -w -g -debug -I=../GtkD/generated/gtkd \
>> 	-oftest_rig_imperative test_rig_imperative.d \
>> 	-L../GtkD/libgtkd-3.a
>> ./test_rig_imperative
> It's been literally decades since I used a makefile. Did I miss 
> the part where you the makefile was written/generated?

Yes, you did miss that part because I didn't write it in, 
thinking that the echo of the command would be sufficient.  
Sorry.  Anyway, here is the single rule in my makefile.  I tend 
to use makefiles as a memory aid so they are often quite simple.

test_rig_imperative: test_rig_imperative.d
	dmd -w -g -debug -I=../GtkD/generated/gtkd \
		-oftest_rig_imperative test_rig_imperative.d \

Peter J.

More information about the Digitalmars-d-learn mailing list