我需要從多個項目導入模塊到當前項目。從多個項目導入D模塊
目前我獲得以下因編譯消息:
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
項目設置如下:
${HOME}/d_apps/steering
${HOME}/d_apps/path_find
${HOME}/d_apps/path_find/map/map.d includes steering.game_object
編譯命令:
dmd map/map.d main_visual.d -ofmain_visual -H -gc -unittest -L-lDgame -L-lDerelictUtil -L-lDerelictGL3 -L-lDerelictSDL2 -L-ldl -I/home/real/d_apps/dgame/source -I/home/real/d_apps/derelict_util/source -I/home/real/d_apps/derelict_gl3/source -I/home/real/d_apps/derelict_sdl2/source -I/home/real/d_apps/steering