# How to handle C dependency in packages

**URL:** https://discourse.julialang.org/t/how-to-handle-c-dependency-in-packages/33643
**Category:** New to Julia
**Tags:** package
**Created:** [January 21, 2020, 10:27pm UTC](https://discourse.julialang.org/t/how-to-handle-c-dependency-in-packages/33643 "2020-01-21T22:27:01Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Jakub\_Wronowski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jakub_wronowski/32/204030_2.png) [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)
#### Post date: [January 28, 2020, 6:06pm UTC](https://discourse.julialang.org/t/how-to-handle-c-dependency-in-packages/33643/8 "2020-01-28T18:06:35Z")

</div>

> [@henry2004y](#):
>
> That would be extremely helpful. I briefly went through BinaryBuilder and Yggdrasil, but I still don’t have a clear picture in mind

Hi, with a lot of help from @giordano I prepared a really simple example how to add such C dependency. There is a step by step instruction how to generate JLL module and then reference it from the other module that exposes functionality by wrapping `ccall`.  
This tutorial needs improvement but I think it may be useful at the current stage.

> **[GitHub - jakubwro/SineWaves.jl: Tutorial and showcase of using a binary...](https://github.com/jakubwro/SineWaves.jl)**
>
> Tutorial and showcase of using a binary dependency in Julia - GitHub - jakubwro/SineWaves.jl: Tutorial and showcase of using a binary dependency in Julia

---

_[View the full topic](https://discourse.julialang.org/t/how-to-handle-c-dependency-in-packages/33643)._
