[julia-users] Re: Indicating Fortran path dependencies the correct way?

2016-06-23 Thread Charles Ll
, 2016 at 10:22:08 PM UTC-4, Charles Ll wrote: >> >> Dear all, >> >> I use a Fortran code in my package Spectra.jl, it is working really >> nicely. However, I still use the absolute library path in ccall. From >> discussion in the Gitter, I know that I cou

[julia-users] Indicating Fortran path dependencies the correct way?

2016-06-22 Thread Charles Ll
Dear all, I use a Fortran code in my package Spectra.jl, it is working really nicely. However, I still use the absolute library path in ccall. From discussion in the Gitter, I know that I could use eval, but my ccall is in a function so as eval works on global variables, it seems not

[julia-users] Re: Calling Fortran in Julia Windows 10 - dlopen Error

2016-06-22 Thread Charles Ll
I faced a similar problem, and actually had to indicate the absolute path of the shared library. Also, when calling a Fortran function/subroutine, you need to add an underscore after its name. So maybe try the following: ccall((:hello_,"/my/path/HelloWorld.dll"),Void,()) Le jeudi 23 juin

Re: [julia-users] Re: Calling Fortran code?

2016-06-09 Thread Charles Ll
the Python wrapper which works usually very well... Not the best thing to call Python to call Fortran but if it works... If anybody have an idea... it will be very welcome! Le jeudi 9 juin 2016 11:23:42 UTC+10, Charles Ll a écrit : > > Yes, the full code and the test notebook that I used

Re: [julia-users] Re: Calling Fortran code?

2016-06-08 Thread Charles Ll
t;call" these variables, and what the error > message is? > > The more detail you give, the easier it is to help. > > -erik > > > On Mon, Jun 6, 2016 at 8:16 PM, Charles Ll <charles...@gmail.com > > wrote: > >> Dear all, >> >> Thank yo

Re: [julia-users] Re: Calling Fortran code?

2016-06-07 Thread Charles Ll
ps://github.com/JuliaLang/julia/blob/master/base/linalg/blas.jl > > https://github.com/JuliaLang/julia/blob/master/base/linalg/lapack.jl > > > Paulo > > On Monday, June 6, 2016 at 9:16:27 PM UTC-3, Charles Ll wrote: >> >> Dear all, >> >> Thank you very muc

Re: [julia-users] Re: Calling Fortran code?

2016-06-06 Thread Charles Ll
and `Int64`. > > -erik > > > On Mon, Jun 6, 2016 at 6:07 AM, Páll Haraldsson <pall.ha...@gmail.com > > wrote: > >> On Monday, June 6, 2016 at 3:22:47 AM UTC, Charles Ll wrote: >>> >>> Dear all, >>> >>> I am trying to call some Fortr

[julia-users] Calling Fortran code?

2016-06-05 Thread Charles Ll
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,

[julia-users] Re: Declaration of types in function construction...

2016-05-12 Thread Charles Ll
hodError: `f` has no method matching f(::Int64, ::Int64, ::Int64) > Closest candidates are: > f(::Any, ::Any) > > julia> f(2, 3, z = 4) > 9 > > Den torsdag 12 maj 2016 kl. 12:51:13 UTC+2 skrev Charles Ll: >> >> Dear all, >> >> There is something I

[julia-users] Declaration of types in function construction...

2016-05-12 Thread Charles Ll
Dear all, There is something I did not understood well in Julia regarding the type fo the variables and this creates difficulties with the functions I am writing. For one of the functions of Spectra.jl package, I wrote for instance: function