# Package boost\_jll: how to use?

**URL:** <https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998>\
**Category:** General Usage\
**Created:** [January 15, 2023, 5:51pm UTC](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998 "2023-01-15T17:51:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [January 15, 2023, 5:51pm UTC](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998/1 "2023-01-15T17:51:53Z")

</div>

Hi,  
There is a package called boost\_jll.jl, how can I use it?  
Is there an example showing how I can use a boost c++ function in another package?  
Thank you

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [January 16, 2023, 2:57am UTC](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998/2 "2023-01-16T02:57:58Z")

</div>

This is all I found about this package: [JuliaHub](https://juliahub.com/ui/Packages/boost_jll/OmA5E/1.79.0+0)

@staticfloat You are mentioned as contributor to this package. Any comment?

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [January 17, 2023, 10:43am UTC](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998/3 "2023-01-17T10:43:11Z")

</div>

Would really appreciate some help on this please. Would be great to learn how to use this boost\_jll package. Thank you.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [January 17, 2023, 11:22am UTC](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998/4 "2023-01-17T11:22:04Z")

</div>

There isn’t much to say apart from reading [Calling C and Fortran Code · The Julia Language](https://docs.julialang.org/en/v1/manual/calling-c-and-fortran-code/index.html). But Boost is in C++, so you likely can’t ccall in it directly, I don’t know if it has a C API. But what do you need from Boost?

`boost_jll` only ships the built libraries, you can access the individual libraries with the variable names listed in [boost\_jll.jl/README.md at aec3fb22c514d69822ecc24dbd0367e855472380 · JuliaBinaryWrappers/boost\_jll.jl · GitHub](https://github.com/JuliaBinaryWrappers/boost_jll.jl/blob/aec3fb22c514d69822ecc24dbd0367e855472380/README.md#products), that’s it.

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [January 17, 2023, 11:31am UTC](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998/5 "2023-01-17T11:31:15Z")

</div>

Thanks for the feedback.  
Yes you are right it is in C++ so it can’t be called directly with `ccall`.  
I have some c++ code that relies on boost and I would like to use it in a julia package.  
So I am wondering how I can run my c++ code using boost\_jll and put all that in a julia package along with some Julia code.  
Hence I am looking for a small c++ example (boost function call) that uses boost\_jll packaged in Julia.  
Thank you.
