ImportC and #include files

jmh530 john.michael.hall at gmail.com
Sat May 6 00:35:46 UTC 2023


On Friday, 5 May 2023 at 23:05:02 UTC, bachmeier wrote:
> On Friday, 5 May 2023 at 22:56:20 UTC, bachmeier wrote:
>
>> Maybe I can come up with a simpler/more practical example 
>> without the complexity of this library. This is the first time 
>> ImportC has worked well enough for me to compile C files.
>
> Here's a simpler example using math.h that works for me:
>
> https://gist.github.com/bachmeil/6da28f934454864b7ddf80e2d1eaa5e5

I’m afk this weekend, but I didn’t have a .c file that included 
the math header. I just wanted to use the c header directly in 
the d file. I want to try having a blank .c file that includes 
the math header and see if I can use that with D.


More information about the Digitalmars-d mailing list