zig-help

21196 threads · Page 142 of 424

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