# Read binary Float128 data

**URL:** https://discourse.julialang.org/t/read-binary-float128-data/73767
**Category:** General Usage
**Tags:** binaryio
**Created:** [December 29, 2021, 5:06pm UTC](https://discourse.julialang.org/t/read-binary-float128-data/73767 "2021-12-29T17:06:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mikel\_Antonana](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikel_antonana/32/3095_2.png) [@Mikel\_Antonana](https://discourse.julialang.org/u/Mikel_Antonana)
#### Post date: [December 29, 2021, 5:06pm UTC](https://discourse.julialang.org/t/read-binary-float128-data/73767/1 "2021-12-29T17:06:52Z")

</div>

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?

```julia
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

```
