ImportC "no include path set"

Elfstone elfstone at yeah.net
Wed Feb 8 06:49:06 UTC 2023


On Wednesday, 8 February 2023 at 04:14:21 UTC, ryuukk_ wrote:
> On Tuesday, 7 February 2023 at 14:01:00 UTC, Elfstone wrote:
>> On Tuesday, 7 February 2023 at 13:10:44 UTC, ryuukk_ wrote:
>>> On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote:
>>>> On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote:
>>>>> [...]
>>>>
>>>> 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..
>>
>> That I tried, and I got link error(s) - see my first post. :(
>
> Oh my bad, i misread your comment
>
> Make sure your visual studio install is up to date, maybe you 
> have one component missing?
>
> https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation
>
> If you installed/updated VS without reboot, maybe a reboot 
> could do the trick?

I believe all three versions (2017,2019,2022) of my VS are up to 
date, and I have working C/C++ projects on them.
But you encouraged me to give a few more tries, and I found out I 
had been using ..bin64/dmd.exe. Running ..bin/dmd.exe in VS 
Command Prompt turned out successful. Thx!


More information about the Digitalmars-d-learn mailing list