On Monday, June 6, 2016 at 3:22:47 AM UTC, Charles Ll wrote: > > Dear all, > > I am trying to call some Fortran code in Julia, but I have a hard time > doing so... I have read the docs, looked at the wrapping of ARPACK and > other libraries... But I did not find any way to make it work. > > I am trying to wrap a spline function library (gcvspl.f, > https://github.com/charlesll/Spectra.jl/tree/master/Dependencies), which > I want to use in my project, Spectra.jl. > > I already have a wrapper in Python, but this was easier to wrap with using > f2py. In Julia, I understand that I have to do it properly. The function I > am trying to call is: >
I think, you may already have gotten the correct answer. At first I was expecting fcall, not just ccall keyword in Julia, to call Fortran.. It's not strictly needed, but in fact, there is an issue somewhere still open about fcall (keyword, or was if for a function?), and it may have been for your situation.. [It might not be too helpful to know, you can call Python with PyCall.jl, so if you've already wrapped in Python..] -- Palli.
