Including a file
Vindex
tech.vindex at gmail.com
Sun Jul 18 17:28:07 UTC 2021
One of my library modules (for example, libmylib) has the line
`immutable string jsonText = import("thing.json")`
When I try to build a program with this (already installed)
library I see error
```
ldc2 source/main.d -ofmyprogram -L-l:libmylib.so.0
Error: file "thing.json" cannot be found or not in a path
specified with -J
```
Is the actual inclusion of the file on import deferred until the
link step?
Is there a way to avoid this?
I could insert the entire json into the file, but I would hate to
do that.
More information about the Digitalmars-d-learn
mailing list