8000 Zap won't compile on Microsoft Windows. · Issue #74 · zigzap/zap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Zap won't compile on Microsoft Windows. #74
Closed
@FoxTale-Labs

Description

@FoxTale-Labs

I've been trying to create a project using Zap and building it, but Zap throws an error making my project unable to compile.
I've tried many things to get it working and verified my build files, but the error persists and comes out of Zap's build file it seems.

Here is the error
image

and comes from here within Zap (build.zig)
image

My build.zig (shortened)

const std = @import("std");

pub fn build(b: *std.Build) void {
    // ...

    const exe = b.addExecutable(.{
        .name = "api",
        .root_source_file = .{ .path = "src/main.zig" },
        .target = target,
        .optimize = optimize,
    });

    // LOADING ZAP
    const zap = b.dependency("zap", .{
        .target = target,
        .optimize = optimize,
        .openssl = false, // set to true to enable TLS support
    });
    exe.addModule("zap", zap.module("zap"));
    exe.linkLibrary(zap.artifact("facil.io"));

    b.installArtifact(exe);

    // ...
}

My build.zig.zon file (shortened)

.{
    .dependencies = .{
        // zap v0.5.0
        .zap = .{
            .url = "https://github.com/zigzap/zap/archive/refs/tags/v0.5.0.tar.gz",
            .hash = "1220aabff84ad1d800f5657d6a49cb90dab3799765811ada27faf527be45dd315a4d",
        },
    },
}

Version of Zig 0.11.0
Version of Zap 0.5.0
Version of Windows Windows 11 - Build 23620.1000 - 22H2

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

      0