how to work-around this "deprecation" error (return address of field of struct?)

mw mingwu at gmail.com
Tue Aug 25 00:13:40 UTC 2020


On Tuesday, 25 August 2020 at 00:05:37 UTC, Adam D. Ruppe wrote:
> On Monday, 24 August 2020 at 23:57:03 UTC, mw wrote:
>> I didn't add that package myself, guess it's indirectly pulled 
>> in by some other packages.
>
> oh geeze. you're gonna be in some trouble then since a couple 
> layers of libraries away won't get your build flags. they are 
> compiled independently based on their own configuration.

Any easy way to find the offending package?


BTW, I find a work-around (adding "-d" on VisualD doesn't work), 
I end up add "-d" to the sc.ini file:

$ find /mnt/c/project/dlang/dmd-2.093.1  -name '*ini' | grep bin
/mnt/c/project/dlang/dmd-2.093.1/windows/bin/sc.ini
/mnt/c/project/dlang/dmd-2.093.1/windows/bin64/sc.ini

[Environment]
DFLAGS="-I%@P%\..\..\src\phobos" 
"-I%@P%\..\..\src\druntime\import" "-d"

Although I'm on 64-bit Windows 10, change bin64/sc.ini does not 
work; change bin/sc.ini worked.

Hope this will help someone who has similar issues.


More information about the Digitalmars-d mailing list