On Sunday, 22 November 2020 at 03:05:45 UTC, kinke wrote:
On Saturday, 21 November 2020 at 17:25:46 UTC, Jack wrote:
I got the error:

Error: Could not execute `dmd c.o .\foo.d -offoo.exe`:
Error: unrecognized file extension o

dmd version:
DMD32 D Compiler v2.094.1-dirty

gcc version:
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)

DMD expects .obj for Windows. So you'll probably have to use the MS compiler or clang to emit an MSVC-compatible object file, and then use either -m32mscoff or -m64 for DMD.

that worked, thanks! i used MS C compiler to get the object file
cl /arch:IA32 /c c.c
then:
d++ -m32mscoff foo.dpp c.obj
worked fine

Reply via email to