# Using legacy C code with autodifferentiation

**URL:** <https://discourse.julialang.org/t/using-legacy-c-code-with-autodifferentiation/132548>\
**Category:** General Usage\
**Tags:** binarybuilder, c\
**Created:** [September 22, 2025, 1:21am UTC](https://discourse.julialang.org/t/using-legacy-c-code-with-autodifferentiation/132548 "2025-09-22T01:21:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hersle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hersle/32/211689_2.png) [@hersle](https://discourse.julialang.org/u/hersle)\
**Post date:** [October 28, 2025, 2:18pm UTC](https://discourse.julialang.org/t/using-legacy-c-code-with-autodifferentiation/132548/4 "2025-10-28T14:18:17Z")

</div>

Just noting down some resources I found on using Enzyme through external calls:

- [Calling C Code with Automatic Differentiation in Julia](https://discourse.julialang.org/t/calling-c-code-with-automatic-differentiation-in-julia/129503)
- [Is it possible to use autodiff on an external program?](https://discourse.julialang.org/t/is-it-possible-to-use-autodiff-on-an-external-program/108475)
- [External C Libraries and Runtime Dynamic Linking `dlopen` Not Picked Up by Enzyme · Issue #2452 · EnzymeAD/Enzyme.jl · GitHub](https://github.com/EnzymeAD/Enzyme.jl/issues/2452)

---

_[View the full topic](https://discourse.julialang.org/t/using-legacy-c-code-with-autodifferentiation/132548)._
