I'm attempting to use zig and a statically compiled "FLECS" library, i have flecs.h and flecs.c both in my project's src folder but regardless of what i try the program 1) will not recognzie that flecs.h exists (VSCode states there is an error that its not found, doesnt get mentioned when trying to compile) and 2) errors regarding assert.h which the internet seems to say is related to an issue with compiling C code with zig. Any advice?
build.zig
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const exe = b.addExecutable(.{
.name = "my-zig-program",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = b.standardOptimizeOption(.{}),
});
exe.addCSourceFile(.{
.file = b.path("src/flecs.c"),
});
b.installArtifact(exe);
}```
main.zig
```c
const flecs = @cImport({
@cInclude("flecs.h"); // Path to your flecs.h
});
const std = @import("std");
pub fn main() !void {...}```