# Juliac on Windows

**URL:** https://discourse.julialang.org/t/juliac-on-windows/127502
**Category:** General Usage
**Created:** [March 30, 2025, 1:18am UTC](https://discourse.julialang.org/t/juliac-on-windows/127502 "2025-03-30T01:18:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ininterrompue](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ininterrompue/32/5594_2.png) [@Ininterrompue](https://discourse.julialang.org/u/Ininterrompue)
#### Post date: [March 30, 2025, 1:18am UTC](https://discourse.julialang.org/t/juliac-on-windows/127502/1 "2025-03-30T01:18:53Z")

</div>

I’m trying to use `juliac` with `--trim` on Windows 11. Copying the code for reference:

```julia
module HelloWorld

Base.@ccallable function main()::Cint
    println(Core.stdout, "Hello world")
    return 0
end

end

```

Powershell input:

`julia juliac.jl --output-exe hello --trim --experimental hello.jl`

It compiles down to an .exe, 12.7 MB. `./hello.exe` gives no output. When I double click instead, it gives two errors, saying that `libjulia-internal.dll` and `libjulia.dll` could not be found. I think that’s a path issue?

So I place the .exe in `\bin` where those two .dlls reside. Double clicking opens a window which immediately closes. Running `./hello.exe`, I get the following message:

`Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ff959ffcd21 -- Hello world`

By comparison, compiling without `--trim --experimental` gives a program about 270 MB in size, but it runs correctly. As an aside, maybe it’s a Windows thing, but the binary sizes are larger in size than what I’ve seen in the wild.

---

<div class="post-metadata">

### Author: ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)
#### Post date: [March 30, 2025, 6:52am UTC](https://discourse.julialang.org/t/juliac-on-windows/127502/2 "2025-03-30T06:52:38Z")

</div>

Can you report a bug on [GitHub · Where software is built](https://github.com/JuliaLang/julia/issues)?
