Is there a tool to automatically generate Fortan bindings from C library header, using intrinsic iso_c_bindings
module from Fortran 2003 standard?
I am not interested in translating C to Fortran, but only generating bindings.
An automatic tool was used to get the gtk-fortran bindings. It is a Python script cfwrapper.py
. You might be able to adapt it to for your needs, although for my small problems I finally chose to make the bindings by hand.
Another project to consider is h2m: https://github.com/dan-nagle/h2m
However, at this time, on macOS, I cannot successfully compile h2m.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With