# Auto cxxwrap generator like autopybind11

**URL:** https://discourse.julialang.org/t/auto-cxxwrap-generator-like-autopybind11/102225
**Category:** General Usage
**Tags:** cxx, cxxwrap
**Created:** [July 29, 2023, 7:38am UTC](https://discourse.julialang.org/t/auto-cxxwrap-generator-like-autopybind11/102225 "2023-07-29T07:38:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)
#### Post date: [July 29, 2023, 7:38am UTC](https://discourse.julialang.org/t/auto-cxxwrap-generator-like-autopybind11/102225/1 "2023-07-29T07:38:39Z")

</div>

Is there something like [autopybind11 / autopybind11 · GitLab](https://gitlab.kitware.com/autopybind11/autopybind11) where you define a simple config file and it generates all the code needed for wrapping for you?

---

<div class="post-metadata">

### Author: ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)
#### Post date: [July 29, 2023, 7:41am UTC](https://discourse.julialang.org/t/auto-cxxwrap-generator-like-autopybind11/102225/2 "2023-07-29T07:41:34Z")

</div>

I just found [GitHub - grasph/wrapit: Automatization of C++--Julia wrapper generation](https://github.com/grasph/wrapit) , which says template support is incomplete.

---

<div class="post-metadata">

### Author: ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)
#### Post date: [July 29, 2023, 7:54am UTC](https://discourse.julialang.org/t/auto-cxxwrap-generator-like-autopybind11/102225/3 "2023-07-29T07:54:31Z")

</div>

> **[GitHub - JuliaInterop/CxxWrap.jl: Package to make C++ libraries available in...](https://github.com/JuliaInterop/CxxWrap.jl)**
>
> Package to make C++ libraries available in Julia. Contribute to JuliaInterop/CxxWrap.jl development by creating an account on GitHub.

I haven’t used it myself, but this package is most common for this use case, I believe.

---

<div class="post-metadata">

### Author: ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)
#### Post date: [July 29, 2023, 6:21pm UTC](https://discourse.julialang.org/t/auto-cxxwrap-generator-like-autopybind11/102225/4 "2023-07-29T18:21:51Z")

</div>

At a high-level there are other packages, e.g.

> **[GitHub - jw3126/CxxCall.jl: Simple stupid C++ interop](https://github.com/jw3126/CxxCall.jl)**
>
> Simple stupid C++ interop. Contribute to jw3126/CxxCall.jl development by creating an account on GitHub.

I’ve seen a YouTube video explaining it, it seemed like the easiest option to call C++ (or so explained). Thus my doc PR:

[https://github.com/JuliaLang/julia/pull/50693](https://github.com/JuliaLang/julia/pull/50693)

CxxCall (and CxxInterface I believe too) is newer than CxxWrap, which is though the most common solution.

Whatever is the best solution, I would want to know, then you could suggest at my yet un-merged PR.
