August 05, 2014 Re: building a D app with multiple source files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | On Tuesday, 5 August 2014 at 07:57:57 UTC, Vladimir Panteleev wrote:
> On Tuesday, 5 August 2014 at 07:51:53 UTC, nikki wrote:
>>> Correction:
>>>
>>> rdmd -Isource example/source/app.d
>>
>> that one worked, woohoo thanks.
>>
>> what did the -Isource do? it's not in the 'rdmd --help'
>
> You'll find it in dmd's --help. It adds the "source" directory to the search path, the list of directories where the compiler looks for imported modules.
edit: couldn't find that flag in dmd --help (only -Ipath), atleast I know what it does now, hope I'll remember..
thanks a lot though @ great helpful community
|
August 05, 2014 Re: building a D app with multiple source files | ||||
---|---|---|---|---|
| ||||
Posted in reply to nikki | On 8/5/2014 5:06 PM, nikki wrote: > On Tuesday, 5 August 2014 at 07:57:57 UTC, Vladimir Panteleev wrote: >> On Tuesday, 5 August 2014 at 07:51:53 UTC, nikki wrote: >>>> Correction: >>>> >>>> rdmd -Isource example/source/app.d >>> >>> that one worked, woohoo thanks. >>> >>> what did the -Isource do? it's not in the 'rdmd --help' >> >> You'll find it in dmd's --help. It adds the "source" directory to the >> search path, the list of directories where the compiler looks for >> imported modules. > > edit: couldn't find that flag in dmd --help (only -Ipath), atleast I > know what it does now, hope I'll remember.. > thanks a lot though @ great helpful community The switch itself is -I, not -Ipath. 'path' indicates a parameter for which you need to substitute something, in this case a directory path. It should be the root folder for the source modules you want to add to the search path. In this case, for artemisd, the source files are in the 'source' directory, so -Isource is what you pass to dmd. If the directory were named 'foo' instead, you would pass -Ifoo. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com |
August 05, 2014 Re: building a D app with multiple source files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker |
> The switch itself is -I, not -Ipath. 'path' indicates a parameter for which you need to substitute something, in this case a directory path. It should be the root folder for the source modules you want to add to the search path. In this case, for artemisd, the source files are in the 'source' directory, so -Isource is what you pass to dmd. If the directory were named 'foo' instead, you would pass -Ifoo.
aha! that would've bitten me in the future, now I get it, thanks.
|
August 05, 2014 Re: building a D app with multiple source files | ||||
---|---|---|---|---|
| ||||
Posted in reply to nikki | On Tuesday, 5 August 2014 at 08:06:57 UTC, nikki wrote:
> edit: couldn't find that flag in dmd --help (only -Ipath), atleast I know what it does now, hope I'll remember..
> thanks a lot though @ great helpful community
Remember rdmd is just a program to help collect and organise parameters. It still passes everything to dmd. In fact if you use the --chatty option with rdmd it will show you everything it is doing including what it is passing to dmd.
|
Copyright © 1999-2021 by the D Language Foundation