Beginner DUB user question...

WhatMeWorry via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 8 18:24:57 PDT 2016


I've got a little hello_window DUB project which uses these 
dependencies:

dependency "derelict-util"  version="~>2.0.6"
dependency "derelict-glfw3" version="~>3.1.0"	
dependency "derelict-gl3"   version="~>1.0.19"	
dependency "derelict-fi"    version="~>2.0.3"
dependency "derelict-ft"    version="~>1.1.2"
dependency "derelict-al"    version="~>1.0.1"


dub run --verbose --arch=x86_64 --force

successfully compiles and links hello_window.exe

Going forward, I want to reuse common code, so I created a 
sub-directory called appropiately enough: common.

And to quote M. Parker's Learning D, "...for imported modules to 
be compiled and linked, they should be passed to the compiler as 
well."

So how do I get dub to call dmd with this pattern?

dmd hellow_window.d common/load_libraries.d


Thanks.


More information about the Digitalmars-d-learn mailing list