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.
  • ImportC issue? DLearner via Digitalmars-d-learn
    • Re: ImportC... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: ImportC... bachmeier via Digitalmars-d-learn
      • Re: Imp... DLearner via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... DLearner via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
            • ... bachmeier via Digitalmars-d-learn
              • ... DLearner via Digitalmars-d-learn

Reply via email to