We use our own C function to read Float128 binary data (Readbin code is below) which works correctly with Julia 1.4.2 and earlier versions. With later versions we get the following error:
"julia: symbol lookup error: ../../../Code/C/Code-Binary/libCBinary.so: undefined symbol: mpfr_set_float128"
Can anybody help me?
function Readbin(nout::Integer,neq::Integer,myfilename::String)
result_array=Vector{BigFloat}(undef,nout*(neq+1));
for i in 1:(nout*(neq+1))
result_array[i]=BigFloat(0)
end
errorcode=ccall(
# name of C function and library
(:CReadBin, "../../../Code/C/Code-Binary/libCBinary.so"),
# output type
Cint,
# tuple of input types
(Cint,Cint,Cstring,Ptr{BigFloat}),
# name of Julia variables to pass in
nout, neq, myfilename,result_array
)
if errorcode !=0
error("error at CBinFilesWRA.c")
end
return result_array
end