Import module
codenstuff via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jul 9 15:05:21 PDT 2015
I am trying to import module and compile.
The compiler produces message
map/map.d(9): Error: module game_object is in file
'steering/game_object.d' which cannot be read
import path[0] = /usr/include/dmd/phobos
import path[1] = /usr/include/dmd/druntime/import
make: *** [main] Error 1
How can I compile? Is it possible to modify import path?
Modules are set up as
${HOME}/d_apps/steering (contains steering/game_object.d)
${HOME}/d_apps/path_find (contains map/map.d)
In map.d I import as
import steering.game_object;
The compile command
dmd map/map.d main_visual.d -I${HOME}/d_apps/steering
More information about the Digitalmars-d-learn
mailing list