Executables not launching on Windows. · Issue #246 · raylib-zig/raylib-zig · GitHub
Skip to content

Executables not launching on Windows. #246

Open

Description

@NilOmniscient

So, in both msys/clang, and vscode, I cannot get this to launch properly on a windows machine.
I can compile other programs and run them just fine, but as soon as I do anything with these raylib bindings, it compiles, then silently fails when running the .exe. I'm not sure why.

It works fine under an ArchLinux environment too. So it seems to be just a Windows related thing.

Activity

  1. NilOmniscient commented on Jun 21, 2025

    @NilOmniscient
    Author

    So, the windows issue only seems to happen if raylib_dep has .shared = true as one of the options.

  2. Not-Nik commented on Jun 27, 2025

    @Not-Nik
    Member

    Do you start the exe in a terminal? Maybe there it shows an error output. Chances are it can't find the DLL it needs.

  3. NilOmniscient commented on Jun 27, 2025

    @NilOmniscient
    Author

    Do you start the exe in a terminal? Maybe there it shows an error output. Chances are it can't find the DLL it needs.

    Yes, I do start it via terminal. It just silently fails. Current workaround for me is to check the OS tag in the build.zig, and if linux, build shared to avoid the lld complaints, and if windows, build static.

  4. maiconpintoabreu commented on Aug 12, 2025

    @maiconpintoabreu
    Contributor

    Hi @NilOmniscient, if you set raylib shared, you need to ship the lib in the folder as well. (*.dll on windows case)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions