# Using PackageCompiler with include function

**URL:** <https://discourse.julialang.org/t/using-packagecompiler-with-include-function/21242>\
**Category:** Internals & Design\
**Created:** [February 27, 2019, 3:26am UTC](https://discourse.julialang.org/t/using-packagecompiler-with-include-function/21242 "2019-02-27T03:26:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erisme](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Post date:** [February 27, 2019, 3:26am UTC](https://discourse.julialang.org/t/using-packagecompiler-with-include-function/21242/1 "2019-02-27T03:26:15Z")

</div>

Hi there,

I am using PackageCompiler to build an executable on windows. I have a main function and run build\_executable function to create my executable.

my julia\_main is:  
module mystuff  
Base.@ccallable function julia\_main(ARGS::Vector{String})::Cint  
include(“hello.jl”)  
return 0  
end  
end

where hello.jl countain a println(“Hello World”)

the build\_executable work perfectly and create an exe file, **but** when I run the exe file it failed and doesnt not run the include(“hello.jl”) any idea why?

thank you

---

<div class="post-metadata">

**Author:** ![Erisme](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Post date:** [February 27, 2019, 3:37am UTC](https://discourse.julialang.org/t/using-packagecompiler-with-include-function/21242/2 "2019-02-27T03:37:32Z")

</div>

sorry this

module mystuff  
Base.@ccallable function julia\_main(ARGS::Vector{String})::Cint  
include(“hello.jl”)  
return 0  
end  
end

is not working

but this is working

module mystuff  
Base.@ccallable function julia\_main(ARGS::Vector{String})::Cint  
println(“hello.jl”)  
return 0  
end  
end

Can someone help me to build an executable where I have a part of my code in an other julia script (part2.jl) for instance, that I can bring with include function?
