zig-help

21196 threads · Page 376 of 424

How can you include local .h files using @cInclude? 3 messages
Answered
What do return values other than ``void`` do in the main function? 7 messages
Answered
tagged unions with common fields 8 messages
Answered
Change the tag of a tagged union 4 messages
Answered
Passing an arraylist to a function, struct, or returning ArrayList from a function 20 messages
Answered
Disable formatting? 9 messages
Compiling the impossible (compiling hermes to wasm) 13 messages
packed union assignment issue 22 messages
how can i export zig fn with var args? 6 messages
Compiler crash, next steps? 21 messages
trouble with @cImport-ing raylib 53 messages
New User
Is there a way to initialize a pointer within a struct returned from a function? 4 messages
Is there a quick way to get the current executable name? 8 messages
New User Answered
Cant print items of ArrayListUnmanaged 12 messages
How to make the compiler emit `vpmovmskb` (aka. "create bitmask from vector of bytes") 6 messages
Answered
Is Zig's linker faster than clang/lld? 3 messages
union field from tag 31 messages
OutOfMemory error for a GeneralPurposeAllocator used in a AutoHashMap 7 messages
Answered
How can I set void type in extern struct? 4 messages
Is using opaque in Zig a bad thing? 244 messages
Issue when compiling zig-exe linking to libharu 6 messages
Convenient way to check Array contains / if elem in array? 7 messages
Answered
Testing a C library 32 messages
Compiler
Trying to use freetype & harfbuzz from mach-freetype and getting an @import error 6 messages
Adding options to build.zig 10 messages
Standard Library Answered
How to organize game structs 19 messages
[*c] types in zig 36 messages
Answered
Building C with Zig on Windows and debugging e.g., via RemedyBG 6 messages
comptime hashtable with function pointer 23 messages
beginner needs help 5 messages
Answered
Local variable shadows declaration 4 messages
Keccak is not working? 7 messages
Standard Library New User
What's the syntax for initialization an anonymous tagged union outside of the containing struct?` 2 messages
How do you integrate a library with Zig build? 32 messages
Answered
Conditionally including fields in a struct file 15 messages
How to reinterpret u64 as std.os.windows.HANDLE 6 messages
Error handling with messages in Zig 40 messages
pointer value not based on parent struct 68 messages
segfault when using `pub export fn _start()` 9 messages
is there a downloadable version of the stdlib docs/language reference anywhere? 7 messages
Answered
Ignore addSystemCommand exit codes 9 messages
Answered
How to edit ZLS config.json? 30 messages
Answered
How can I clean up this code? 35 messages
Quick Way to Copy from `[]const u8` to `@Vector(..., u8)`? 4 messages
Avoiding comptime arg and const member shadowing 7 messages
How to Embed the result of addObjCopy steps into a binary? 4 messages
union size 4 messages
zig c++ compiler doesnt know __popcnt SIMD intrinsic 17 messages
How to update package -> module for latest zig 10 messages
Answered
What is the intended way to handle `OutOfMemory` errors? 23 messages
Answered