# Create\_library dependency path issue

**URL:** <https://discourse.julialang.org/t/create-library-dependency-path-issue/82646>\
**Category:** New to Julia\
**Tags:** question, package, compilation, package-compiler\
**Created:** [June 12, 2022, 7:54pm UTC](https://discourse.julialang.org/t/create-library-dependency-path-issue/82646 "2022-06-12T19:54:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MEZ](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mez/32/19694_2.png) [@MEZ](https://discourse.julialang.org/u/MEZ)\
**Post date:** [June 12, 2022, 7:54pm UTC](https://discourse.julialang.org/t/create-library-dependency-path-issue/82646/1 "2022-06-12T19:54:06Z")

</div>

I’m trying to create a library for my package using the following command:  
using PackageCompiler; create\_library(“MyPackage”, “libMyPackage”)  
This command fails when trying to precompile the project, stating that a function MyFunc which is defined in the MyDependency package cannot be found.  
I have a version of MyDependency in my .julia folder, which does not have MyFunc defined, but I also have a dev version of the package in which I have defined MyFunc.  
The status command of pkg points to the correct path of the dev version of MyDependency. Additionally, when I execute ‘test MyPackage’ the dependency is also correctly found.  
Only when using the create\_library function MyFunc cannot be found.

How do I ensure that the PackageCompiler also finds the correct path of MyDependency?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [June 12, 2022, 11:27pm UTC](https://discourse.julialang.org/t/create-library-dependency-path-issue/82646/2 "2022-06-12T23:27:06Z")

</div>

Do both packages have the same version number? Try bumping the version number of the deved package.
