ImportC issue?
DLearner
bmqazwsx123 at gmail.com
Wed Apr 19 12:07:07 UTC 2023
On Wednesday, 19 April 2023 at 11:50:28 UTC, bachmeier wrote:
[...]
> Did you use the switch `-m32omf`?
>
> https://dlang.org/spec/importc.html#auto-cpp
No so following the references I tried every preprocessor option
I could find:
```
C:\Users\SoftDev\Documents\BDM\D\ImportC>dmd ex01.c -m32omf
failed launching sppn.exe ex01.c
-HIC:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h
-ED -oex01.i
Error: C preprocess command sppn.exe failed for file ex01.c, exit
status 1
C:\Users\SoftDev\Documents\BDM\D\ImportC>dmd ex01.c -c -m32omf
failed launching sppn.exe ex01.c
-HIC:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h
-ED -oex01.i
Error: C preprocess command sppn.exe failed for file ex01.c, exit
status 1
C:\Users\SoftDev\Documents\BDM\D\ImportC>dmd ex01.c -c -m32mscoff
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
C:\Users\SoftDev\Documents\BDM\D\ImportC>dmd ex01.c -c -m64
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
```
Unfortunately all options failed.
More information about the Digitalmars-d-learn
mailing list