Including a file

Vindex tech.vindex at gmail.com
Sun Jul 18 17:48:53 UTC 2021


On Sunday, 18 July 2021 at 17:31:24 UTC, Adam D Ruppe wrote:
> On Sunday, 18 July 2021 at 17:28:07 UTC, Vindex wrote:
>> Error: file "thing.json" cannot be found or not in a path 
>> specified with -J
>
> You need to specify the path where it is found with the -J 
> switch to the compiler. Like `ldc2 -J. yourfile.d

I already compiled the library itself with -Jres. It turns out 
that this must be done twice? Once when compiling the library, 
the second time when compiling the program.


More information about the Digitalmars-d-learn mailing list