ImportC "no include path set"
bachmeier
no at spam.net
Sat Jun 22 10:47:42 UTC 2024
On Friday, 21 June 2024 at 17:40:39 UTC, mw wrote:
> On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote:
>> On Monday, 6 February 2023 at 06:55:02 UTC, Elfstone wrote:
>>
>>> So how am I supposed to set the include path?
>>
>> https://dlang.org/spec/importc.html#preprocessor
>>
>>> The -Ppreprocessorflag switch passes preprocessorflag to the
>>> preprocessor.
>>
>> So if you normally use `-I/foo`, you'd add `-P-I/foo`.
>
> How to do this in the dub.json file? and work across
> DMD/LDC/GDC?
>
> Thanks.
I don't normally use Dub for this reason (it takes longer for me
to figure out how to create the dub.json than it's worth). I'd
expect "dflags" to work, but I haven't tried, and I'm not sure
how much of ImportC even works with GDC.
More information about the Digitalmars-d-learn
mailing list