Re: ImportC question

2024-10-31 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 20:26:58 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 18:57:15 UTC, Salih Dincer wrote: DMD Compiler version? SDB@79 ``` C:\Users\SoftDev>dmd DMD64 D Compiler v2.106.0-dirty ``` First of all, be sure to get rid of that old version because a lot has cha

Re: ImportC question

2024-10-30 Thread ryuukk_ via Digitalmars-d-learn
On Wednesday, 30 October 2024 at 15:17:56 UTC, DLearner wrote: On Wednesday, 30 October 2024 at 09:21:55 UTC, ryuukk_ wrote: On Tuesday, 29 October 2024 at 20:26:58 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 18:57:15 UTC, Salih Dincer wrote: On Monday, 28 October 2024 at 20:56:03 UTC,

Re: ImportC question

2024-10-30 Thread DLearner via Digitalmars-d-learn
On Wednesday, 30 October 2024 at 09:21:55 UTC, ryuukk_ wrote: On Tuesday, 29 October 2024 at 20:26:58 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 18:57:15 UTC, Salih Dincer wrote: On Monday, 28 October 2024 at 20:56:03 UTC, DLearner wrote: Just trying ImportC under Windows 10: ```c #in

Re: ImportC question

2024-10-30 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 20:26:58 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 18:57:15 UTC, Salih Dincer wrote: On Monday, 28 October 2024 at 20:56:03 UTC, DLearner wrote: Just trying ImportC under Windows 10: ```c #include int main() { printf("Hello world.\n"); return 0;

Re: ImportC question

2024-10-29 Thread Dennis via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 16:14:22 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 15:49:13 UTC, ryuukk_ wrote: https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022 Similar message from Powershell: Whether it's CMD/Powershell isn't impo

Re: ImportC question

2024-10-29 Thread DLearner via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 18:57:15 UTC, Salih Dincer wrote: On Monday, 28 October 2024 at 20:56:03 UTC, DLearner wrote: Just trying ImportC under Windows 10: ```c #include int main() { printf("Hello world.\n"); return 0; } ``` Produces ``` dmd hello.c failed launching cl.exe /P /Zc

Re: ImportC question

2024-10-29 Thread Salih Dincer via Digitalmars-d-learn
On Monday, 28 October 2024 at 20:56:03 UTC, DLearner wrote: Just trying ImportC under Windows 10: ```c #include int main() { printf("Hello world.\n"); return 0; } ``` Produces ``` dmd hello.c failed launching cl.exe /P /Zc:preprocessor /PD /nologo hello.c /FIC:\D\dmd2\windows\bin64\..\.

Re: ImportC question

2024-10-29 Thread Lance Bachmeier via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 18:17:37 UTC, Richard (Rikki) Andrew Cattermole wrote: https://issues.dlang.org/show_bug.cgi?id=24308 I guess that explains why I've never run into the issue - I've been using LDC but not DMD on Windows.

Re: ImportC question

2024-10-29 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
https://issues.dlang.org/show_bug.cgi?id=24308

Re: ImportC question

2024-10-29 Thread Lance Bachmeier via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 16:14:22 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 15:49:13 UTC, ryuukk_ wrote: On Tuesday, 29 October 2024 at 15:14:24 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 12:42:49 UTC, Lance Bachmeier wrote: On Tuesday, 29 October 2024 at 12:23:06 UTC,

Re: ImportC question

2024-10-29 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 30/10/2024 1:23 AM, DLearner wrote: On Tuesday, 29 October 2024 at 00:10:17 UTC, Richard (Rikki) Andrew Cattermole wrote: https://github.com/dlang/dmd/blob/ dbba866c71db5e1222a1b631b3e910f1a0811732/compiler/src/dmd/link.d#L1332 cl.exe comes from Visual Studio (MSVC). If you haven't got it

Re: ImportC question

2024-10-29 Thread DLearner via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 15:49:13 UTC, ryuukk_ wrote: On Tuesday, 29 October 2024 at 15:14:24 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 12:42:49 UTC, Lance Bachmeier wrote: On Tuesday, 29 October 2024 at 12:23:06 UTC, DLearner wrote: However, there is still a problem: ``` dmd

Re: ImportC question

2024-10-29 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 15:14:24 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 12:42:49 UTC, Lance Bachmeier wrote: On Tuesday, 29 October 2024 at 12:23:06 UTC, DLearner wrote: However, there is still a problem: ``` dmd hello.c C:\D\dmd2\windows\bin64\..\..\src\druntime\import\imp

Re: ImportC question

2024-10-29 Thread DLearner via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 12:42:49 UTC, Lance Bachmeier wrote: On Tuesday, 29 October 2024 at 12:23:06 UTC, DLearner wrote: However, there is still a problem: ``` dmd hello.c C:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h(134): fatal error C1034: sal.h: no include path set Er

Re: ImportC question

2024-10-29 Thread Lance Bachmeier via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 12:23:06 UTC, DLearner wrote: However, there is still a problem: ``` dmd hello.c C:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h(134): fatal error C1034: sal.h: no include path set Error: C preprocess command cl.exe failed for file hello.c, exit statu

Re: ImportC question

2024-10-29 Thread DLearner via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 00:10:17 UTC, Richard (Rikki) Andrew Cattermole wrote: https://github.com/dlang/dmd/blob/dbba866c71db5e1222a1b631b3e910f1a0811732/compiler/src/dmd/link.d#L1332 cl.exe comes from Visual Studio (MSVC). If you haven't got it installed, that'll be why. Otherwise its

Re: ImportC question

2024-10-28 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
https://github.com/dlang/dmd/blob/dbba866c71db5e1222a1b631b3e910f1a0811732/compiler/src/dmd/link.d#L1332 cl.exe comes from Visual Studio (MSVC). If you haven't got it installed, that'll be why. Otherwise its related to dmd not being able to find it.

ImportC question

2024-10-28 Thread DLearner via Digitalmars-d-learn
Just trying ImportC under Windows 10: ``` #include int main() { printf("Hello world.\n"); return 0; } ``` Produces ``` dmd hello.c failed launching cl.exe /P /Zc:preprocessor /PD /nologo hello.c /FIC:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h /Fihello.i Error: C preproces