undefined reference to
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Jun 14 19:03:22 UTC 2025
On 15/06/2025 5:42 AM, mitgedanken wrote:
> On Saturday, 14 June 2025 at 15:28:27 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> On 15/06/2025 3:25 AM, mitgedanken wrote:
>>> [...]
>>
>> You may be linking against it separately.
>>
>> The -i behavior only works for small executables, when the build
>> commands (yes plural) get more complex its not going to give you the
>> control that you need.
>
> I thought that's what the flag ``-I“...”`` was for. Provided the naming
> conforms to the standard.
-i uses the import path switches to source files from.
By default the D compiler defaults to looking in current working
directory, hence why -i by itself works.
More information about the Digitalmars-d-learn
mailing list