zig-help

21196 threads · Page 349 of 424

Conditional build tags 28 messages
Fine tuning linking an exe with a static lib 7 messages
New User
zig 0.11 change /transition guide 7 messages
Answered
How can I coerce an error set to a subset? 16 messages
New User Answered 0.13.x
Debugging C imports? 19 messages
Answered
Accept an anonymous function to initialize a function pointer in struct 11 messages
Zig alternative to C++ constexpr array 6 messages
Answered
Passing AutoArrayHashMap to a function 2 messages
Standard Library New User 0.13.x
Zig and JS 16 messages
Serializing complicated json string from http request 4 messages
Standard Library New User 0.13.x
Is @bitCast between integers and vectors clearly defined? 5 messages
Answered
How to give a fn a set of types as an input? 4 messages
Answered
How to add options to build 3 messages
Answered
How can I copy a varying length slice into a (guaranteed-sized larger) array? 21 messages
Answered
Best way to save language reference & stdlib docs for offline use? 9 messages
Answered
Zig debugger 13 messages
strerror for zig errors 2 messages
Linking X11 9 messages
Answered
json.stringify an enum 2 messages
how to use dependencies in build.zig.zon 2 messages
Answered
first program binary size 14 messages
Answered
Reproduce struct `__attribute__((aligned(alignment)))` in Zig 3 messages
Answered
open/read file 24 messages
Standard Library New User 0.13.x
c import failed: unknown type uint8_t 5 messages
Answered
Weird (to a newbie) compilation behaviour of a C lib 6 messages
New User
example usage of std.os.exec 2 messages
Answered
Why can't Zig infer error set when creating a variable? 78 messages
Answered
Read entirety of stdin to memory 12 messages
Standard Library New User
replacing the value of an u64 ptr 2 messages
Answered
Field access on C opaque types 18 messages
New User 0.13.x
zig access array or default value if out of bound 2 messages
weird range syntax 8 messages
Capturing stdout 6 messages
What versions does the latest version of ZLS support? 17 messages
0.10.x New User
c_allocator invalid free, no problems with GPA 37 messages
Standard Library Answered 0.13.x
dealing with bit fields 4 messages
Answered
Struggling with function pointer of unknown args in a struct 17 messages
Assigning a string literal to a variable with `orelse`? 5 messages
Answered
Formatting a string of integers results in gibberish 3 messages
Answered
ChildProcess.init returns invalid PID when executing lsof command 2 messages
Unreachable code reached with `Reader.readRoundedBytes` (Zig v.0.10.1) 2 messages
0.10.x Standard Library New User Answered
expected type '[]const u8', found '[*:0]u8' 8 messages
New User
Struct truncated going from Rust to Zig through C API in Release mode 7 messages
Answered
Do I misunderstand unions? 26 messages
Compiler Answered 0.13.x
learning zgui ... build failure "webgpu.h" not found, way to use just regular glfw? 8 messages
Is this legal? 65 messages
is `@constCast` safe? 7 messages
Compiler Answered 0.13.x
I am new to Zig and need a hand debugging some code. Should I ask here or at SO? 13 messages
Answered
What do vertical bars mean? 4 messages
New User Answered
Examples of deflate use? 10 messages
Answered