-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zig 0.9.1 compilation error: 'curl/curl.h' file not found on macOS #10946
Comments
As seen in Homebrew/homebrew-core#95485, this can seemingly be fixed by installing Homebrew However, this isn't really a proper fix because, while the error about not being able to find the |
@messense can you confirm this is still an issue with latest zig master? |
@kubkon I am going to hijack this issue since it might at least be somewhat related. I am encountering issues when using build.zig pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const lib = b.addStaticLibrary(.{
.name = "zig-include-headers-repro",
.target = target,
.optimize = optimize,
});
lib.installHeader(b.path("headers/header.h"), "header.h");
lib.addCSourceFile(.{
.file = b.path("main.c"),
});
b.installArtifact(lib);
}
const std = @import("std"); main.c #include "header.h"
#include <stdio.h>
int main()
{
printf("Hello %d", VERSION);
return 0;
} headers/header.h #define VERSION 20240514
Running
Running |
Zig Version
0.9.1
Steps to Reproduce
brew install --build-from-source zig
brew install --build-from-source fastfec
errorsHomebrew maintainer suggests we report issue here just in case it's a regression of zig.
Expected Behavior
Build successful.
Actual Behavior
The text was updated successfully, but these errors were encountered: