Re: ImportC "no include path set"

2023-02-09 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 8 February 2023 at 14:08:47 UTC, bachmeier wrote: this looks like one of those "death by paper cut" things. It has the smell of a rough edge that needs fixing. It's the one reason I haven't even tried ImportC. I still wonder why I need to provide those headers while for linking

Re: ImportC "no include path set"

2023-02-09 Thread bachmeier via Digitalmars-d-learn
On Thursday, 9 February 2023 at 06:07:35 UTC, Elfstone wrote: Maybe Walter doesn't care about Windows enough, but I thought it'd be a must to add basic tests (say, "dmd hello.c") to run on all the platforms before release. Unlikely, since his text editor [doesn't even compile on

Re: ImportC "no include path set"

2023-02-08 Thread Elfstone via Digitalmars-d-learn
On Wednesday, 8 February 2023 at 14:08:47 UTC, bachmeier wrote: On Wednesday, 8 February 2023 at 06:49:06 UTC, Elfstone wrote: I believe all three versions (2017,2019,2022) of my VS are up to date, and I have working C/C++ projects on them. But you encouraged me to give a few more tries, and I

Re: ImportC "no include path set"

2023-02-08 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 8 February 2023 at 06:49:06 UTC, Elfstone wrote: I believe all three versions (2017,2019,2022) of my VS are up to date, and I have working C/C++ projects on them. But you encouraged me to give a few more tries, and I found out I had been using ..bin64/dmd.exe. Running

Re: ImportC "no include path set"

2023-02-07 Thread Elfstone via Digitalmars-d-learn
On Wednesday, 8 February 2023 at 04:14:21 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 14:01:00 UTC, Elfstone wrote: On Tuesday, 7 February 2023 at 13:10:44 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC,

Re: ImportC "no include path set"

2023-02-07 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 14:01:00 UTC, Elfstone wrote: On Tuesday, 7 February 2023 at 13:10:44 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote: [...] Thanks, it worked, but I still get the

Re: ImportC "no include path set"

2023-02-07 Thread Elfstone via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 13:10:44 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote: [...] Thanks, it worked, but I still get the link error. I wasn't expecting to configure include paths and

Re: ImportC "no include path set"

2023-02-07 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote: On Monday, 6 February 2023 at 06:55:02 UTC, Elfstone wrote: So how am I supposed to set the include path? https://dlang.org/spec/importc.html#preprocessor The

Re: ImportC "no include path set"

2023-02-06 Thread Elfstone via Digitalmars-d-learn
On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote: On Monday, 6 February 2023 at 06:55:02 UTC, Elfstone wrote: So how am I supposed to set the include path? https://dlang.org/spec/importc.html#preprocessor The -Ppreprocessorflag switch passes preprocessorflag to the preprocessor.

Re: ImportC "no include path set"

2023-02-06 Thread bachmeier via Digitalmars-d-learn
On Monday, 6 February 2023 at 06:55:02 UTC, Elfstone wrote: So how am I supposed to set the include path? https://dlang.org/spec/importc.html#preprocessor The -Ppreprocessorflag switch passes preprocessorflag to the preprocessor. So if you normally use `-I/foo`, you'd add `-P-I/foo`.

Re: ImportC "no include path set"

2023-02-06 Thread Ali Çehreli via Digitalmars-d-learn
On 2/5/23 22:55, Elfstone wrote: > So how am I supposed to set the include path? I am not familiar with D in Windows but my first guess would be the -I compiler switch: dmd -I=/my/c/headers ... Ali

ImportC "no include path set"

2023-02-05 Thread Elfstone via Digitalmars-d-learn
I'm trying out ImportC, but I can't get even the "Quick Example" running. > dmd -v .\source\foobar.c predefs DigitalMars LittleEndian D_Version2 all Windows Win32 CRuntime_Microsoft CppRuntime_Microsoft D_InlineAsm D_InlineAsm_X86 X86 assert D_PreConditions D_PostConditions