d++: Error: Could not execute `dmd c.o .\foo.d -offoo.exe`:
kinke
noone at nowhere.com
Sun Nov 22 03:05:45 UTC 2020
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.
More information about the Digitalmars-d-learn
mailing list