Modules/packages and cryptic errors

al al at
Sat Oct 31 05:59:18 PDT 2009

I have main.d with:


and when I run:

dmd foo/*.d main.d

I get:

module bar is in multiple defined

This is pretty strange. The only way I can silence this error is to add "module dirname.filename" to *every* file.

Surely there must be less annoying method?

More information about the Digitalmars-d-learn mailing list