building a D app with multiple source files
Vladimir Panteleev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 5 00:47:33 PDT 2014
On Tuesday, 5 August 2014 at 07:46:05 UTC, Vladimir Panteleev
wrote:
> On Tuesday, 5 August 2014 at 07:43:56 UTC, nikki wrote:
>>
>>>
>>> What issues have you had with rdmd?
>>>
>>> The library seems to have a package.json file, so you could
>>> also try dub:
>>> http://code.dlang.org/download
>>
>>
>> nikki at crunchbang:~/projects/d/artemisd$ rdmd
>> example/source/app.d
>> example/source/app.d(5): Error: module all is in file
>> 'artemisd/all.d' which cannot be read
>> import path[0] = example/source
>> import path[1] = /usr/include/dmd/phobos
>> import path[2] = /usr/include/dmd/druntime/import
>> Failed: ["dmd", "-v", "-o-", "example/source/app.d",
>> "-Iexample/source"]
>>
>> nikki at crunchbang:~/projects/d/artemisd$ rdmd --makedepend
>> example/source/app.d
>> example/source/app.d(5): Error: module all is in file
>> 'artemisd/all.d' which cannot be read
>> import path[0] = example/source
>> import path[1] = /usr/include/dmd/phobos
>> import path[2] = /usr/include/dmd/druntime/import
>> Failed: ["dmd", "-v", "-o-", "example/source/app.d",
>> "-Iexample/source"]
>
> The search path does not include the artemisd package.
>
> Try: cd .. && rdmd artemisd/example/source/app.d
> Or : rdmd -I.. example/source/app.d
Correction:
rdmd -Isource example/source/app.d
More information about the Digitalmars-d-learn
mailing list