zig-help

21196 threads · Page 283 of 424

error: parameter of type *database.Database() must be declared comptime. 6 messages
std.mem Documentation 6 messages
Run command in terminal with timeout 2 messages
Allocation size and free size have a difference of 1. Can't figure out why. 91 messages
Answered
Unable to use std.mem.len on []const u8. 28 messages
Answered
segfault w/ `std.mem.writeInt` 107 messages
Answered
I'm not able to login to ziggit.dev with discord. Maybe the client secrets are wrong. 5 messages
How to correctly type a function to accept a union 3 messages
New User Answered
How to verify if a Type has a function has correct name, param types, and return type? 9 messages
Answered
Run multiple build steps at once? 4 messages
How to specify Zig Build prefix within build script 11 messages
0.11.x
Return JSON-parsed value without Parsed(T) Wrapper 8 messages
Answered 0.13.x
how to convert a struct to string in zig? 13 messages
Answered
How to import ffmpeg from Andrew's fork? 7 messages
Answered
ZLS not working with vulkan-zig 5 messages
0.11.x New User
Getting compiler to expect all tagged union fields in a struct to be the same type 4 messages
New User Answered 0.13.x
how do i format rgb into hex color 3 messages
Standard Library Compiler New User
@sizeOf(T) is less than @sizeOf(T.FieldType) 57 messages
Compiler
Giving zig fmt hints 11 messages
New User Answered
Unable to translate C expression when using SDL library 2 messages
0.11.x
error: unable to format function body type, use '*const fn () i32' for a function pointer type 11 messages
New User Answered 0.13.x
Default initialize a struct without assignment 6 messages
How to convert string to utf16 (for win32) 17 messages
Compiler 0.11.x New User Answered
C++ class interop 3 messages
Answered
why does C and zig produce such different result for a simple square function 11 messages
std.os.setsockopt 17 messages
Answered
std.mem.zeroes(array) inside loops 5 messages
New User 0.11.x Answered 0.13.x
my wasm project used to work but not anymore? 17 messages
Answered
more memory related stuff 2 messages
allocator 50 messages
Segfault in build.zig when adding module 15 messages
Compiler Answered 0.13.x
What's the easiest way of obtaining scalar - vector multiplication in Zig? 13 messages
New User Answered
How to get install path in build.zig? 5 messages
0.11.x Answered
bufPrint array as sequence, not as pointer. 6 messages
how to create true random number? 13 messages
Custom struct don't allow undefined? 2 messages
Answered
addSystemCommand file not found 28 messages
Answered
error: expected type '[4]u64', found '[]u64' 18 messages
Anytype vs. Type in Generics. 16 messages
New User Answered
Use custom compile arguments as comptime variables 5 messages
Casting u8 slice elements to other types 78 messages
New User Answered 0.13.x
net.Stream timeouts 2 messages
Answered
Zig Language Extras Visual Studio Code extension bug replication request regarding the debug command 7 messages
0.10.x New User
Pass allocator at compile time 11 messages
Is it possible to use the embedded testing framework of zig for testing C code ? if so how ? 4 messages
New User
Is there a way to cast u8 to i8 in Zig? 4 messages
Answered 0.13.x
Idomatic way of handling errors in Zig. 22 messages
New User Answered
Can't set a u16 unicode string 2 messages
Answered
Idiomatic way to use a RNG (bonus: that is not a struct member) 9 messages
Answered 0.13.x
access of union field 'field1' while field 'field1' is active 17 messages