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