ImportC "no include path set"

ryuukk_ ryuukk.dev at gmail.com
Tue Feb 7 13:10:44 UTC 2023


On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone 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`.
>
> Thanks, it worked, but I still get the link error.
> I wasn't expecting to configure include paths and link the 
> right libc myself. The doc says the simple "dmd hello.c" should 
> create "hello.exe". It must be a bug.

You need to run dmd from the developer command prompt on windows

I always found this requirement weird

 From an UX point of view, what would the better experience be? 
Could DMD ship with the required files? I have 0 knowledge how 
the whole thing works so..



More information about the Digitalmars-d-learn mailing list