Giter Site home page Giter Site logo

Comments (6)

chrboesch avatar chrboesch commented on June 4, 2024 1

Please, see the instructions from our start page: "Install a development build of the Zig compiler."
The development version is mandatory, since there were a few changes for the casting functions and they expect just only one argument, for example: @bitCast(value: anytype) anytype

from ziglings.

chrboesch avatar chrboesch commented on June 4, 2024

Which Zig version do you use?

from ziglings.

mauricioabreu avatar mauricioabreu commented on June 4, 2024

@chrboesch Having the same problem:

OS: Mac Ventura
Arch: arm64
Zig version: 0.10.1

I can see that the code is falling into a conditional made especially for Windows. Still debugging because I have zero knowledge of zig.

else if (builtin.os.tag == .windows) {
        const w32 = struct {
            const WINAPI = std.os.windows.WINAPI;
            const DWORD = std.os.windows.DWORD;
            const ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004;
            const STD_ERROR_HANDLE: DWORD = @bitCast(@as(i32, -12));
            extern "kernel32" fn GetStdHandle(id: DWORD) callconv(WINAPI) ?*anyopaque;
            extern "kernel32" fn GetConsoleMode(console: ?*anyopaque, out_mode: *DWORD) callconv(WINAPI) u32;
            extern "kernel32" fn SetConsoleMode(console: ?*anyopaque, mode: DWORD) callconv(WINAPI) u32;
        };
...
}

from ziglings.

mauricioabreu avatar mauricioabreu commented on June 4, 2024

@chrboesch thank you! And sorry for that. The last time I checked it was working fine.

from ziglings.

whitequill avatar whitequill commented on June 4, 2024

The version I am using is; 0.10.1-r3 from gentoo.

from ziglings.

chrboesch avatar chrboesch commented on June 4, 2024

The version I am using is; 0.10.1-r3 from gentoo.

Same, see this: #344 (comment)

from ziglings.

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.