Import module
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 10 03:22:38 PDT 2015
On Friday, 10 July 2015 at 00:53:38 UTC, codenstuff wrote:
> On Friday, 10 July 2015 at 00:24:44 UTC, anonymous wrote:
>> On Thursday, 9 July 2015 at 22:05:23 UTC, codenstuff wrote:
>>> 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
>>>
>>
[...]
>
> The path is ${HOME}/d_apps/steering/steering/game_object.d
>
> Compile command is
>
> 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
>
> Compiler message is same
The error message doesn't list any of your import paths. So I
still think that the message doesn't belong to that command.
Maybe try reducing things to a smaller, self-contained test case.
More information about the Digitalmars-d-learn
mailing list