module search paths
Brian Tiffin
btiffin at gnu.org
Wed Aug 4 20:58:33 UTC 2021
On Wednesday, 4 August 2021 at 05:01:59 UTC, Ali Çehreli wrote:
> On 8/3/21 9:51 PM, Brian Tiffin wrote:
...
> > Is there a go to quick and easy way of tracking down
> > module members?
>
> Searching for it at dlang.org usually works pretty well.
> Although, I hear that Adam's Phobos documentation site is
> better. (I don't use it just because I don't have a habit of it
> yet.)
>
> Finally, I sometimes grep under /usr/include/dmd. Ultimate
> truth! :)
>
> Ali
Just adding; here's some technical details for a Ubuntu 18.04
32bit laptop, with gdc-11.1.0, dmd 2.097.1, ldc 1.8.0 (have yet
to explore the LLVM options), and vibe out of current dub as of
early Aug 2020+1, when looking for standard library ultimate
truths. *JSON in particular, but these paths are going to be the
go to paths for now*.
```
/usr/include/d/vibe/vibe/data/json.d
/usr/include/dmd/phobos/std/json.d
/usr/lib/gcc/i686-linux-gnu/11/include/d/std/json.d
/usr/lib/gcc/i686-linux-gnu/9/include/d/std/json.d
/usr/lib/ldc/i386-linux-gnu/include/d/std/json.d
```
I have not done any builds from source yet, only `apt` package
installs from main repos and gcc leading edge, so `/usr/local...`
is not a complicating factor on this laptop.
`/usr/lib/gcc/i686-linux-gnu/11/include/d/...` is where I have
been finding truth for gdc-11 D.
Cheers, and another thanks.
More information about the Digitalmars-d-learn
mailing list