Building and using a function library
Charles Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun May 25 12:07:09 PDT 2014
What does this error mean?
./min_cut.d(15): Error: module line_count from file
../my_utils/line_count.d must be imported as module 'line_count'
My directory structure in question is:
.../D
/min_cut which contains min_cut.d which I'm building
/my_utils which contains line_count.d
I'm positioned in the min_cut directory. I have -I../ added as a
root in my config file. I've tried both:
import line_count; and import my_utils.line_count; and this 2nd
format (which I believed was correct) produced the above error.
line_count.d contains only one function: int line_count(string
file_path)
This is supposed to be easy, but I'm just missing something:( Oh
BTW, I'm working from tcsh on an iMac.
Thanx - Charlie
More information about the Digitalmars-d-learn
mailing list