Module Name Resolution

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 25 22:51:04 PDT 2016


On Wednesday, 26 October 2016 at 05:27:53 UTC, Jason C. Wells 
wrote:
> Hence the repeated advice to supply all the filenames on the 
> command line.

this is basically 'cause dmd doesn't automatically compile and 
link imported modules. it you won't specify module in dmd command 
line, dmd will only look for type declarations in that module, 
but will not compile any actual code from it. so the link stage 
fill fail, 'cause it will try to link with non-existing code. the 
easiest way to solve that is just pass all modules to dmd. or use 
rdmd -- it automatically process imports and invokes dmd with 
built module list (that is what i am using, for example).


More information about the Digitalmars-d-learn mailing list