I am trying to help here wrapping Sundials. I have modified the original
wrapper so that it downloads and build the library using cmake. You can find
the code
[here](https://github.com/HugoGranstrom/nimsundials/issues/1#issue-471158226).
As you can see, I hit a wall. When it compiles nim_sundials.nim.c I get:
home/jose/.cache/nim/nim_sundials_d/nim_sundials.nim.c:219:77: error: name
of type ‘CVRhsFn’ unknown
219 | typedef N_CDECL_PTR(int, tyProc_dycob5keSi0v89cXsanNL9cA) (void*
cvode_mem, CVRhsFn f, realtype t0, struct _generic_N_Vector* y0);
|
^~~~~~~
I don't understand why it complains about CVRhsFn type being unknown. The file
cvode/cvode.h defines:
typedef int (*CVRhsFn)(realtype t, N_Vector y,
N_Vector ydot, void *user_data);
Run
And the wrapper is importing it:
cImport(installDirInclude/"cvode/cvode.h", dynlib="libsundials_cvode")
Any idea?