ImportC question
DLearner
bmqazwsx123 at gmail.com
Tue Oct 29 12:23:06 UTC 2024
On Tuesday, 29 October 2024 at 00:10:17 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> https://github.com/dlang/dmd/blob/dbba866c71db5e1222a1b631b3e910f1a0811732/compiler/src/dmd/link.d#L1332
>
> cl.exe comes from Visual Studio (MSVC).
>
> If you haven't got it installed, that'll be why.
>
> Otherwise its related to dmd not being able to find it.
Thank you.
I installed Visual Studio 2022, proved the existence of cl.exe,
and added the location to the search path.
However, there is still a problem:
```
dmd hello.c
C:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h(134):
fatal error C1034: sal.h: no include path set
Error: C preprocess command cl.exe failed for file hello.c, exit
status 2
```
which looks like dmd found cl.exe, but did not supply it with all
the data it required.
More information about the Digitalmars-d-learn
mailing list