zig-help

21196 threads · Page 418 of 424

I tried build zig with git version, homebrew and git repo but error 35 messages
Compiler New User
Rewrite it in Zig 12 messages
import operand must be string literal 33 messages
Libraries not found by translate-c 7 messages
New User
optional pointer to optional pointer 3 messages
Using zig's clang bindings 4 messages
Peer type resolution 7 messages
New User
Do integers of arbitrary length have stable ABI? 12 messages
Single pointer to pointer to many 7 messages
Understanding how creation & assignment work 15 messages
New User
Error as a member field 14 messages
Writing a 'tuple' type 7 messages
Looks like cyclic type references are currently borked on master. 13 messages
Root package 6 messages
Compiling a C library - fatal error 'alloca.h' file not found 8 messages
Less aggressive zig fmt? 7 messages
Is there a way to parse JSON into a generic object map? 7 messages
New User Standard Library
Multi-level struct initialization 4 messages
Why doesn't RwLock subtract writers? 16 messages
Unexplainable access of inactive union field 21 messages
Compiler
Allocators and data alignment 39 messages
Standard Library
Calling a C function by pointer fails 17 messages
File existence 26 messages
Anonymous Unions? 11 messages
New User
Emitting all docs via build.zig 6 messages
Using build.zig options in c source code 50 messages
New User
Using undefined with const 22 messages
Stage3 fails to compile 18 messages
Compiler
Calling a C function segfaults 4 messages
Initializing a struct in a function with a pointer to it 2 messages
Zig output dir 43 messages
Strange behavior of structs not playing with big.int 37 messages
Standard Library
segfault on ArrayList with ArenaAllocator created inside struct.init 69 messages
How to sort an ArrayList 58 messages
What code runs when you try to print a BigInt or any other custom type 8 messages
net.Stream on UDP operations 9 messages
Compile with ReleaseSmall but keep line info? 5 messages
Standard Library Compiler New User
aes encryption 7 messages
How do you know when compileError can be used instead of unreachable? 26 messages
Expected behavior in suspend - resume concurrency pattern 6 messages
raylib via cImport Vector3Add produces wrong results unless using -fstage1 3 messages
Answered
Extern struct from imported file? 159 messages
Exporting slices to C ABI 20 messages
How to manage WASM memory in Zig? 53 messages
How to emit assembly code when compiling? 9 messages
New User Compiler
Is it possible to construct a struct fields at comptime? 4 messages
Doubt about std.mem.Allocator 39 messages
X11-xlib. call c macro function 4 messages
New User
Allocator {access of union field 'Pointer' while field 'Struct' is active} 44 messages
Standard Library Compiler
Building latest zig on current mac == busted (llvm15 & zstd) 27 messages