digitalmars.D.learn - d++: Error: Could not execute `dmd c.o .\foo.d -offoo.exe`:
- Jack (10/15) Nov 21 2020 I'm trying to get d++ to work on Windows 10/64-bit machine but it
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (4/19) Nov 21 2020 I have never used dpp, but the github page says you should use
- Jack (4/30) Nov 21 2020 what the docs says is about to use ldc2 to build from source
- kinke (4/11) Nov 21 2020 DMD expects .obj for Windows. So you'll probably have to use the
- Jack (4/20) Nov 22 2020 then:
I'm trying to get d++ to work on Windows 10/64-bit machine but it doesn't work. I'm using the very same code samples c.c, c.h and foo.dpp from here https://github.com/atilaneves/dpp/tree/master/bash but when I went to run:d++ foo.dpp c.oI got the error:Error: Could not execute `dmd c.o .\foo.d -offoo.exe`: Error: unrecognized file extension odmd version:DMD32 D Compiler v2.094.1-dirtygcc version:gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)d++ the least one, build from sources my OS is windows 10/64-bit. What am I missing?
Nov 21 2020
On Saturday, 21 November 2020 at 17:25:46 UTC, Jack wrote:I'm trying to get d++ to work on Windows 10/64-bit machine but it doesn't work. I'm using the very same code samples c.c, c.h and foo.dpp from here https://github.com/atilaneves/dpp/tree/master/bash but when I went to run:I have never used dpp, but the github page says you should use LDC, not DMD. And I could not find anything implying gcc is supported.d++ foo.dpp c.oI got the error:Error: Could not execute `dmd c.o .\foo.d -offoo.exe`: Error: unrecognized file extension odmd version:DMD32 D Compiler v2.094.1-dirtygcc version:gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)d++ the least one, build from sources my OS is windows 10/64-bit. What am I missing?
Nov 21 2020
On Saturday, 21 November 2020 at 19:34:31 UTC, Ferhat Kurtulmuş wrote:On Saturday, 21 November 2020 at 17:25:46 UTC, Jack wrote:what the docs says is about to use ldc2 to build from source code, which I did. That failed dmd call is done by d++ internally.I'm trying to get d++ to work on Windows 10/64-bit machine but it doesn't work. I'm using the very same code samples c.c, c.h and foo.dpp from here https://github.com/atilaneves/dpp/tree/master/bash but when I went to run:I have never used dpp, but the github page says you should use LDC, not DMD. And I could not find anything implying gcc is supported.d++ foo.dpp c.oI got the error:Error: Could not execute `dmd c.o .\foo.d -offoo.exe`: Error: unrecognized file extension odmd version:DMD32 D Compiler v2.094.1-dirtygcc version:gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)d++ the least one, build from sources my OS is windows 10/64-bit. What am I missing?
Nov 21 2020
On Saturday, 21 November 2020 at 17:25:46 UTC, Jack wrote:I got the error: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.Error: Could not execute `dmd c.o .\foo.d -offoo.exe`: Error: unrecognized file extension odmd version:DMD32 D Compiler v2.094.1-dirtygcc version:gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
Nov 21 2020
On Sunday, 22 November 2020 at 03:05:45 UTC, kinke wrote:On Saturday, 21 November 2020 at 17:25:46 UTC, Jack wrote:that worked, thanks! i used MS C compiler to get the object fileI got the error: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.Error: Could not execute `dmd c.o .\foo.d -offoo.exe`: Error: unrecognized file extension odmd version:DMD32 D Compiler v2.094.1-dirtygcc version:gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)cl /arch:IA32 /c c.cthen:d++ -m32mscoff foo.dpp c.objworked fine
Nov 22 2020