zig-help
how to use `@embedFile` on a file outside of the package path
expected type expression, found '{'
0.13.x
Raw binary output
Are there any GUI libraries for zig?
0.14.x
New User
Offline dependencies
Build System
0.13.x
converting u8, to []const u8?
Standard Library
dear imgui + zig + gflw + webgpu
Reading sentinel terminated string from JSON
struggle understanding hashmap.get() logic
Answered
json stringify struct, error: cannot load opaque type 'anyopaque'
New User
Standard Library
Answered
0.13.x
Casting void pointer to different Type
Declare struct locally for sort with custom compare function
0.14.x
Answered
cast slice of [_]u8 to *u32
New User
Answered
0.13.x
While loop with two indices
Answered
0.13.x
Need help with Encoding P-256 EC key to JWK
Answered
Buffer allocator that can free
Answered
Weird segfault
Answered
error: root struct of file 'build' has no member named 'main'
0.13.x
main.zig:2:25: error: no module named 'zig-msgpack' available within module root
Does Zig have a mutable pass by reference for functions? Can you add it if it does not?
0.14.x
Compiler
New User
Build System
Standard Library
Segfault when returning *ArrayList
New User
Answered
0.13.x
Convention creating allocators vs passing as parameters
Answered
HashMap panic (Incorrect Alignment)
New User
Answered
How do I cast usize to u32?
incorrect alignment error when using comptime type resolution hashmap operations
Modify json value as it's read into a struct
casting using as
Answered
error: identifier cannot be empty
For loop down (to zero)
Error whilst trying to compile zig-minirv32 with zig 14.0 : invalid phi record
comptime struct return type in comptime switch
zls not in neovim active configs
New User
Answered
fn that accepts comptime union tag but runtime payload?
Serializing Type Info
Why does this produce an InvalidCharacter error?
Switch: invalid error messages?
Standard Library
New User
Answered
Callback with Runtime Arguments?
Baby's first free
Convert u64 to []const u8
New User
While loop with an index?
Access struct fields from enum value
Answered
How to link a libary?
New User
object file not being found when library used
Build System
Compiler
Answered
Help on building node libraries with zig
src\main.cpp:1:1: error: expected type expression, found 'invalid token'#include <iostream>
Answered
Does it make sense to learn Zig without prior C knowledge?
Answered
Dependency Not Recognized
transpose an ArrayList([]const u8) memory confusion
Answered
C uint pointers passing into cimport functions
Build rres for raylib with zig