ImportC issue?

DLearner bmqazwsx123 at gmail.com
Wed Apr 19 10:21:22 UTC 2023


C source ex01.c:
```
#include <stdio.h>
int main()
{
    printf("hello world\n");
    return 0;
}
```
'dmc ex01.c' produces message:
```
link ex01,,,user32+kernel32/noi;
```

but does generate .obj, .map and .exe files,
and the exe executes properly.

However, trying to use ImportC via 'dmd ex01.c' produces messages:
```
failed launching cl.exe /P /Zc:preprocessor /PD /nologo ex01.c 
/FIC:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h 
/Fiex01.i
Error: C preprocess command cl.exe failed for file ex01.c, exit 
status 1
```

This behaviour was repeated after a complete fresh 
re-installation of dmd & dmc from the website.


More information about the Digitalmars-d-learn mailing list