GithubHelp home page GithubHelp logo

Comments (4)

rohlem avatar rohlem commented on September 15, 2024

Wherever you end up asking, having a minimal reproducible example would help in determining the issue.
Does this reproduce on a simple hello world, or even with an empty main function, or only with a larger project with multiple source files?
You've mentioned using build.zig, could you share that file?
Also note that the newest Zig release is 0.13, it will probably be easier debugging what's going wrong in the current version than in the old one.

from zig.

Guigui220D avatar Guigui220D commented on September 15, 2024

Hello, I can't seem to reproduce it on a simpler hello world, but here is the build.zig:

const std = @import("std");
const builtin = @import("builtin");

pub fn build(b: *std.Build) !void {
    const target = b.standardTargetOptions(.{ .default_target = .{ .os_tag = .linux } });
    const mode = b.standardOptimizeOption(.{});

    const st_exe = b.addExecutable(.{
        .name = "st",
        .target = target,
        .optimize = mode,
    });

    st_exe.defineCMacro("VERSION", "\"0.9.2\"");

    st_exe.addCSourceFiles(.{
        .files = &.{ "x.c", "st.c" },
    });

    st_exe.addLibraryPath(.{ .cwd_relative = "/usr/lib/x86_64-linux-gnu/" });

    st_exe.linkLibC();

    st_exe.linkSystemLibrary("X11");
    st_exe.linkSystemLibrary("fontconfig");
    st_exe.linkSystemLibrary("freetype2");
    st_exe.linkSystemLibrary("Xft");

    b.installArtifact(st_exe);
}

from zig.

Guigui220D avatar Guigui220D commented on September 15, 2024

I'll come back with a minimal working example when I can

from zig.

Guigui220D avatar Guigui220D commented on September 15, 2024

It's my bad, sorry for the panic-issue.

from zig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.