# Include c files while building Julia

**URL:** <https://discourse.julialang.org/t/include-c-files-while-building-julia/131717>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [August 19, 2025, 7:54pm UTC](https://discourse.julialang.org/t/include-c-files-while-building-julia/131717 "2025-08-19T19:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [August 19, 2025, 7:54pm UTC](https://discourse.julialang.org/t/include-c-files-while-building-julia/131717/1 "2025-08-19T19:54:27Z")

</div>

Hi,

I know that it is possible to include some custom julia code in userimg.jl while building Julia.

I was wondering if it is possible to also include C code that gets automatically compiled during the build process of Julia and that I can call via ccall? If yes, what are the steps to follow?

Thank you
