zig-help

21196 threads · Page 143 of 424

How to use windows.h in zig? 4 messages
Compiler 0.13.x
comptime array initialization keeps on returning the last item as garbage 8 messages
Passing zig string as cstring to function. 8 messages
How can I use a type as part of a hashmap key? 4 messages
Defining strings in function parameters 4 messages
New User Answered 0.13.x
Your comparator is not a valid strict-weak ordering error while compiling C++ 3 messages
Compiler Answered
translating C bitfield 17 messages
What's the correct way of comparing string ([]const u8)? 3 messages
New User Answered
Reading from stdin hangs 8 messages
Answered
How can I sort arrays of variable lengths? 8 messages
Capture union value in labeled switch statement 4 messages
0.14.x Answered
What's the correct way of checking if a type is an array of X? 10 messages
New User Answered 0.13.x
linking libwebp 5 messages
Answered
What is the correct way to coerce this multidimensional array into a slice? 10 messages
Is there a way to see if a reader has a value? 3 messages
How can I add Zig itself as a module? 4 messages
Answered
Why doesn't this code store the strings read from a file? 96 messages
Lazy path in addCSourceFiles 7 messages
Answered
vararg function arguments. 58 messages
Why std.json.parseFromSlice(std.ArrayList(T)) is not working 18 messages
0.14.x Answered
Using `zig fetch` on non zig packages 2 messages
Answered
Prevent hardcoding of absolute path to shared library in binary 15 messages
Build System Answered 0.13.x
How to selectively execute code blocks based on optimization mode 2 messages
0.14.x New User Answered
how to pass a generated Lazypath of a text file to a module? 2 messages
Build System 0.14.x Answered
IDT doesn't call handler 2 messages
Any hashmap alternatives for storing generic state inside a struct? 2 messages
0.13.x
How do I cast a pointer to [*]u8 3 messages
New User 0.13.x
Weird const thing 14 messages
Standard Library New User 0.13.x
Why doesn't this work at comptime 15 messages
Compiler 0.13.x
Cannot produce output 2 messages
Answered New User 0.13.x
Easy parser? 3 messages
Answered
Installed from WinGet. Not sure where Zig is. 5 messages
Answered
Constant lld-link issues using external include headers 2 messages
Build System 0.14.x Compiler New User
convert ?*anyopaque to *const fn (*Widget) void 3 messages
0.13.x
How to generate the root source file for a compile module 6 messages
Build System 0.14.x
Can't index tuple with runtime value 10 messages
Answered
what's the best way to read a file 6 messages
Answered
How to create arbitrary files for intermediate build steps 3 messages
0.14.x New User Build System Standard Library Answered
What does passing without a pointer mean? 47 messages
Choose (at build time) to use zig or provided C implementation 15 messages
Answered
DllMain 29 messages
0.14.x
Dynamic linking to .so in local directory 6 messages
New User Answered
Help installing the zig-network library 17 messages
Build System New User Answered
Is it possible to have an dash within an enum? 3 messages
Calling zig functions from external object file 11 messages
Build System Answered 0.13.x
What is u2 in const Value = enum(u2) { zero, one, two } ? 14 messages
Answered
Looking for help with memory leak 11 messages
Answered 0.13.x
Calling specific functions from a file, instead of main 19 messages
`inline` or not `inline`: here is the case 12 messages
Zig idiomatic way to handle descriptive errors. 15 messages