Skip to content

Error code 53 on Windows #12

@Billuc

Description

@Billuc

Hi,
I am new to Zig and wanted to try this library.
However I am having a problem when running my program with the following error

run
└─ run administrative failure
error: the following command exited with error code 53:
C:\Users\luc.billaud\Code\Perso\myproject\zig-out\bin\myproject.exe

I tried both static linking and automatic fetch and build.

Here is my code :

pub fn main() !void {
    var alloc = std.heap.GeneralPurposeAllocator(.{}){};
    const allocator = alloc.allocator();
    var open_err: ?[]u8 = null;
    _ = zuckdb.DB.initWithErr(allocator, "db.duckdb", .{}, &open_err) catch |err| {
        defer allocator.free(open_err.?);
        std.debug.print("DB open: {any} {any}", .{ open_err.?, err });
    };
}

Could the problem be linked to the fact that I am on Windows ?

Additional information :

  • Zig v0.14.0
  • Latest DuckDB version (1.2.1 on Windows)
  • Windows 11
  • ZuckDB installed via zig fetch --save git+https://github.com/karlseguin/zuckdb.zig

Thanks in advance !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions