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-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: Proper way to raise awareness of a bug

2024-10-29 Thread monkyyy via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 16:59:48 UTC, Chris Piker wrote: Hi D There is a bug listed in the Bugzilla tracking tool that affected me the other day, [15526](https://issues.dlang.org/show_bug.cgi?id=15526). It's not a big problem, just an unexpected issue and seems easy to fix... by some

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 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: Proper way to raise awareness of a bug

2024-10-29 Thread Chris Piker via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 19:18:05 UTC, H. S. Teoh wrote: // This should do the job. Put it in a function if you need it // frequently. myInput.byChars.filter!(ch => ch != '_').to!int That's similar to the workaround I used, but yours uses a lazy range so it's nice

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 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: Proper way to raise awareness of a bug

2024-10-29 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 30/10/2024 5:59 AM, Chris Piker wrote: What is the etiquette around Bugzilla usage in the community? Would it be appropriate or inappropriate to get an account on issues.dlang.org just to post a comment on a bug stating that it affect my code. If there is one other person stating just this,

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 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: Proper way to raise awareness of a bug

2024-10-29 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Oct 29, 2024 at 04:59:48PM +, Chris Piker via Digitalmars-d-learn wrote: > Hi D > > There is a bug listed in the Bugzilla tracking tool that affected me > the other day, > [15526](https://issues.dlang.org/show_bug.cgi?id=15526). It's not a > big problem, just an unexpected issue and

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 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 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 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

Proper way to raise awareness of a bug

2024-10-29 Thread Chris Piker via Digitalmars-d-learn
Hi D There is a bug listed in the Bugzilla tracking tool that affected me the other day, [15526](https://issues.dlang.org/show_bug.cgi?id=15526). It's not a big problem, just an unexpected issue and seems easy to fix... by someone familiar with Phobos. What is the etiquette around Bugzilla

Re: Proper way to raise awareness of a bug

2024-10-29 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 16:59:48 UTC, Chris Piker wrote: Hi D There is a bug listed in the Bugzilla tracking tool that affected me the other day, [15526](https://issues.dlang.org/show_bug.cgi?id=15526). It's not a big problem, just an unexpected issue and seems easy to fix... by some