zig-help

21196 threads · Page 225 of 424

Unpredictable Compiler Behavior | Lexer 33 messages
Compiler Answered 0.12.x
How to call native Zig code from JS and vice versa? 16 messages
GTK+ and zig 20 messages
error: dependency loop detected with Cimport 9 messages
0.11.x New User Answered
Generating a random number at compile time 2 messages
0.12.x
Weird Memory (I think) errors 6 messages
0.11.x New User Answered
Weird error when specifying -Dtarget 6 messages
Linking error with a GitHub c library 29 messages
Function to compact a slice 67 messages
passing build options to dependencies 46 messages
Answered
Leak goes undetected? 15 messages
Answered
How do I detect if stdIn is empty 22 messages
Answered
New to Zig, weird behavior with debug.print statements? 29 messages
Answered
Can you call a function knowing its name at comptime? 40 messages
Standard Library New User
Why does std.json.Parsed store a pointer to the allocator? 14 messages
Standard Library New User Answered
what's the equivalent of flags in zig v13? 9 messages
Answered 0.13.x
How to change from dependency to sharedLibrary 15 messages
Build System New User Answered 0.12.x
emit the assembly of my executable 9 messages
Build System
Need some help with getting this working on Windows 8 messages
Answered
Convert `[]const u8` to `[:0]const u8` in comptime 7 messages
Answered
some idiomatic way to print/format an optional number? 63 messages
error: dependency loop detected 41 messages
0.13.x
How to reasonably manage two unions which contain similar but different sets of data 21 messages
Answered
review of OXO game 61 messages
get type of member field using comptime field name 13 messages
Error when freeing a node (expected Pointer) 10 messages
New User Answered 0.13.x
Building / Running Examples 4 messages
New User Answered 0.12.x
@field equivalent for runtime? 31 messages
Hash map with duplicate keys 3 messages
Standard Library Answered 0.13.x
meta.stringToEnum() and field with @"" syntax 31 messages
Answered
Looping sentinel terminated array 18 messages
Generating functions at comptime? 5 messages
calling gluInit() 3 messages
Answered
table alignment 9 messages
Answered
Unnamed struct fields? 42 messages
Initialize const array of structs with slice fields 5 messages
Type 'c_int' does not support array initialization syntax. 5 messages
Answered
Bad size for ?struct{ ?*usize } 36 messages
Answered
Bug with `@field` with generics 25 messages
0.12.x
can I reference a local directory from build.zig.zon? 4 messages
Any existing app frameworks using Zig? (like electron, tauri) 4 messages
Find memory allocation in program 38 messages
Answered
Integer part of floating point out of bounds 95 messages
safe to call `callconv(.Unspecified)` function pointer? 22 messages
0.12.x
Testing panics and asserts 9 messages
Trouble Linking 23 messages
Answered
value of 'c_uint' ignored 22 messages
Answered
Why does linkinb libc makes me use pthreads instead of natives OS threads 102 messages
dynamic linking requires libc 2 messages
How to setting C define with value 13 messages
Answered