# How to force a precompilation of a CxxWrap package

**URL:** <https://discourse.julialang.org/t/how-to-force-a-precompilation-of-a-cxxwrap-package/95332>\
**Category:** Package Management\
**Tags:** cxxwrap\
**Created:** [February 28, 2023, 1:42pm UTC](https://discourse.julialang.org/t/how-to-force-a-precompilation-of-a-cxxwrap-package/95332 "2023-02-28T13:42:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peremato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peremato/32/29128_2.png) [@peremato](https://discourse.julialang.org/u/peremato)\
**Post date:** [February 28, 2023, 1:42pm UTC](https://discourse.julialang.org/t/how-to-force-a-precompilation-of-a-cxxwrap-package/95332/1 "2023-02-28T13:42:10Z")

</div>

I am using CxxWrap to generate bindings for a C++ package, for which I create a wrapper dynamic library that is loaded in the julia module file with `@wrapmodule(<library>)`. The problem is that re-creating the wrapper library does not force a pre-compilation of the module, thus new types and methods are not generated. The only way I could force a re-precompilation is by modifying the Julia module file. Is there another way of doing it?
