Building and using a function library

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 25 12:14:04 PDT 2014


On Sunday, 25 May 2014 at 19:07:10 UTC, Charles Parker wrote:
> ./min_cut.d(15): Error: module line_count from file 
> ../my_utils/line_count.d must be imported as module 'line_count'

That means you forgot the module line in line_count.d

At the top of that file, add:

module my_utils.line_count;

and leave everything else the same and you should be ok.

The error is saying that the name of the import line should 
always match the name of the module line which wasn't the case 
here.


More information about the Digitalmars-d-learn mailing list