# Best way of working to wrap a c-library?

**URL:** https://discourse.julialang.org/t/best-way-of-working-to-wrap-a-c-library/73823
**Category:** New to Julia
**Created:** [December 30, 2021, 5:40pm UTC](https://discourse.julialang.org/t/best-way-of-working-to-wrap-a-c-library/73823 "2021-12-30T17:40:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)
#### Post date: [December 30, 2021, 5:40pm UTC](https://discourse.julialang.org/t/best-way-of-working-to-wrap-a-c-library/73823/1 "2021-12-30T17:40:13Z")

</div>

Dear all,  
I have somewhat experience, but the tooling has hugely improved, namely `BinaryBuilder.jl`. I’m wrapping this RTKLIB [http://www.rtklib.com/](http://www.rtklib.com/). I’m using `BinaryBuilder.jl` and `Clang.jl`. I got started quite ok, but now when I’m trying to test use my `RTKLIB_jll`package locally I keep getting these type of errors:

```julia
julia> using RTKLIB
[Info: Precompiling RTKLIB [d3243834-a862-43b1-8389-c8b2594e8f28]
ERROR: LoadError: ArgumentError: Package RTKLIB does not have RTKLIB_jll in its dependencies:
- If you have RTKLIB checked out for development and have
  added RTKLIB_jll as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with RTKLIB

```

I have the impression that I should upload my `RTKLIB_jll`package to [GitHub - JuliaPackaging/Yggdrasil: Collection of builder repositories for BinaryBuilder.jl](https://github.com/JuliaPackaging/Yggdrasil) to get it registered and then all the tooling would work out of the box. I can do this, but I would like to locally test the package first that I haven’t made stupid compilation mistakes. Therefore, I have a feeling that I have missed something. Maybe there is a better way of working which I just have’t realized yet.

---

<div class="post-metadata">

### Author: ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)
#### Post date: [December 30, 2021, 6:21pm UTC](https://discourse.julialang.org/t/best-way-of-working-to-wrap-a-c-library/73823/2 "2021-12-30T18:21:16Z")

</div>

I was missing this `Pkg` command:

```julia
(RTKLIB) pkg> dev /home/tero/.julia/dev/RTKLIB_jll

```
