Building and using a function library

Charles Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 25 13:26:57 PDT 2014


On Sunday, 25 May 2014 at 19:14:05 UTC, Adam D. Ruppe wrote:
> 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.

BINGO:) I knew it was something basic:( I assumed the function 
name and the file name being the same was all that was needed - 
an obvious mistake.

Thanx muchly - Charlie


More information about the Digitalmars-d-learn mailing list