ImportC question
ryuukk_
ryuukk.dev at gmail.com
Wed Oct 30 09:21:55 UTC 2024
On Tuesday, 29 October 2024 at 20:26:58 UTC, DLearner wrote:
> On Tuesday, 29 October 2024 at 18:57:15 UTC, Salih Dincer wrote:
>> On Monday, 28 October 2024 at 20:56:03 UTC, DLearner wrote:
>>> Just trying ImportC under Windows 10:
>>> ```c
>>> #include <stdio.h>
>>>
>>> int main()
>>> {
>>> printf("Hello world.\n");
>>> return 0;
>>> }
>>> ```
>>>
>>> Produces
>>> ```
>>> dmd hello.c
>>> failed launching cl.exe /P /Zc:preprocessor /PD /nologo
>>> hello.c
>>> /FIC:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h /Fihello.i
>>> Error: C preprocess command cl.exe failed for file hello.c,
>>> exit status 1
>>> ```
>>
>> DMD Compiler version?
>>
>> SDB at 79
>
> ```
> C:\Users\SoftDev>dmd
> DMD64 D Compiler v2.106.0-dirty
> ```
update your compiler, latest version is: 2.109.1
then, and only then you can start wondering what's broken
More information about the Digitalmars-d-learn
mailing list