Using the sundials solver package from D - my first experience with importC
matheus.
matheus at gmail.com
Thu Mar 27 14:54:04 UTC 2025
On Thursday, 27 March 2025 at 14:34:49 UTC, Robert Kovacs wrote:
> 1. Wrap the necessary headers to `sundials.c`:
>
> ..
>
> 2. Port the cvRoberts_dns.c example to D:
>
> ...
>
> 3. Build:
>
> ...
>
> 4. Enjoy!
>
> This. Is. Amazing.
>
> Thank you for all involved in importC development!
Never used importC so pardon my "newbiness".
So you created a "sundials.c" adding all the "*.H" files. Then
you just imported that "sundials.c" as
import sundial;
And it worked?
Well this seems very cool.
Matheus.
PS: What would happen if you had sundial.d? The compile can
resolve two files from different languages?
More information about the Digitalmars-d
mailing list