zig-help

21196 threads · Page 195 of 424

How is this an integer overflow? 22 messages
New User
Can't use external zig library(zlm), build error 3 messages
Answered
Error: Array literal requires address-of operator (&) to coerce to slice type '[][]const u8' 3 messages
Answered
invalidCharacter error i cannot figure out for the life of me 10 messages
Standard Library New User Answered
Test failing with FAIL (TestUnexpectedResult) 2 messages
Answered
Difference between ways of struct instance capturing in methods 8 messages
Answered
Using `net.Address`: How to use out_stream to a buffer? 20 messages
Standard Library New User 0.13.x
Build errors but error location isn't mentioned ? 13 messages
New User 0.13.x
cannot format error union without a specifier (i.e. {!} or {any}) 36 messages
Answered
How to read Zig Types? 22 messages
Is there a generic way to figure out whether an array is a slice at comptime? 14 messages
Error sets vs error union? 74 messages
Answered
Having both a library and a exe in a single build file 6 messages
Build System 0.13.x
Function with comptime tag of union with payload 5 messages
0.14.x
cross-compiling pigpio for rpi zero 3 messages
New User 0.13.x
get source location information for calling function 11 messages
Future of TSan With LLVM Split Out? 4 messages
Answered
When using C library is the c_allocator used for them ? 62 messages
C pointer in Zig 51 messages
0.14.x New User Answered
Is there a way to cast a function into an unsigned integer and cast it back? 4 messages
0.13.x
Call wprintf in zig failed with undefined symbol error 32 messages
0.13.x
what's the proper way to wrap C's malloc in zig 6 messages
Is there a way to std.fmt a struct of integer types as hex? 7 messages
Is there a way to check the return type of a function? 27 messages
Confused about error message on allocator.free 15 messages
New User Answered 0.13.x
Exit process gracefully withtout Ctrl+C 16 messages
Zig build error "error: Unexpected" (On Windows11) 4 messages
Build System Answered 0.13.x
std.log different log levels for different files 5 messages
Standard way to initialize object where one member points to another? 55 messages
Answered
No zls completion for external library (in my case mach-glfw and opengl) 11 messages
New User
Canonical way of creating a module or package ? 59 messages
How to cast a [*c]const u8 to isize? 4 messages
Answered
Translate c issue 8 messages
Answered
read arbitrary amount of bits with bitReader 34 messages
Standard Library New User Answered
whats the Target.Query for x86_64 PE freestanding 8 messages
Build System 0.14.x New User
Why is my constant not comptime known? 25 messages
Answered
CI failure due to broken pipe? 2 messages
Answered
[solved] Insert line at the top of a file without erasing 23 messages
Answered
Wrapping a zig library in C? 31 messages
Answered
file io 133 messages
Standard Library New User Answered
`zig build test` finds dependencies, `zig test` does not 14 messages
equivalence of index-then-bitcast of bitcast-then-index 12 messages
build allocator 18 messages
Build System Compiler 0.13.x
Initializing part of array 5 messages
Answered
Print() is not a member function 28 messages
Keeping StringArrayHashMap key memory valid without duplicate allocations 11 messages
Standard Library 0.12.x
Importing C headers into Zig, ZLS 17 messages
Answered
Zig- Calling C from Zig 5 messages
Answered
ZigBrains Problem 94 messages
0.13.x
Why do the function parameters cause `expected ',' after field`? 28 messages
Answered