# Precompiling in 0.7

**URL:** <https://discourse.julialang.org/t/precompiling-in-0-7/14714>\
**Category:** General Usage\
**Created:** [September 8, 2018, 8:34pm UTC](https://discourse.julialang.org/t/precompiling-in-0-7/14714 "2018-09-08T20:34:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [September 8, 2018, 8:34pm UTC](https://discourse.julialang.org/t/precompiling-in-0-7/14714/1 "2018-09-08T20:34:44Z")

</div>

I have some custom modules that I use that worked fine in 0.6.x. At the top of them, I have the command ` __precompile__ ()`. I’m now seeing the warnings:

```julia
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for MyModule [top-level]
│ exception = Required dependency QuadGK [1fd47b50-473d-5c70-9696-f719f8f3bcdc] failed to load from a cache file.
└ @ Base loading.jl:963

```

What’s that about, and how can I resolve it?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [September 9, 2018, 5:45am UTC](https://discourse.julialang.org/t/precompiling-in-0-7/14714/2 "2018-09-09T05:45:31Z")

</div>

In 0.7/1.0, the default is to precompile packages, so that explicit statement is no longer needed. If you want to keep the package compatible with 0.6.x and precompile there, check for the version at the top and precompile if it’s less than 0.7.

That error is certainly weird, can you try adding QuadGK on its own and after that loading your module?
