zig-help

21196 threads · Page 194 of 424

When not to use `inline fn`? 32 messages
New User
using Thread.Mutex in a struct field 8 messages
New User Answered
Zig tokenizer example fails to compile 8 messages
Standard Library New User 0.13.x
Zig generic programming question 82 messages
New User
Should I pass by reference or pass by value? 10 messages
Answered
recursive (union) type design question 12 messages
Answered
Where is `os.exit`? 3 messages
Answered
out of memory error on a Child.spawn() 47 messages
Standard Library New User Answered
Test files which reference `@import("root")` 8 messages
Build System Answered 0.13.x
`std.process.Child` and program architecture 5 messages
Standard Library New User Answered
error: root struct of file 'subfolder.sub' has no member named 'name' 8 messages
Build system: Set b.addOptions depending on current step? 6 messages
Build System 0.14.x
Splitting strings accross multiple lines 6 messages
0.13.x
Is ZLS formatting my code? 10 messages
Answered
Error: unable to check cache: stat file 37 messages
0.14.x New User Answered
How can I construct a Slice type? 14 messages
0.13.x
how to mimic functionality of c's `system()` 4 messages
Answered
Using `addSystemCommand` to pre-build a dependency 4 messages
Answered
Do I need to free a []u8 that I constructed from calling Arraylist.toOwnedSliced() 17 messages
Standard Library New User
Bind header and shared object files 6 messages
Build System Answered 0.13.x
@ctz does not work with comptime_int 22 messages
New User Answered
[solved] Overengineered Makefile to build.zig: How to uncrustify per-folder compiler flags? 27 messages
Answered
Appending to a comptime variable length array 2 messages
Answered 0.13.x
Is it possible to build an executable only using std.zig? 16 messages
Standard Library
unsafe memcpy / casting 12 messages
New User Answered 0.13.x
Convert *[512]c_char to *c_char 13 messages
How to check if within test {} clause there is X declaration? 11 messages
How to handle variadic arguments? 31 messages
New User Answered
Is it better to have a `usize` of flags, or a struct with those flags (`u1`'s)? 7 messages
[solved] How to get the output of pkg-config into a slice from the buildsystem 70 messages
New User 0.13.x Build System Standard Library Answered
What's an example of how to use std.fmt.formatInt? 11 messages
Initialize EnumSet with an integer value? 5 messages
SIGSEGV (Address boundary error) 13 messages
multiple catch for optionals 21 messages
Need suggestions on how to implement multiple structs which share extremely similar functions 16 messages
New User Answered
help linking webp to wasm freestanding output 2 messages
Compiler New User
Please help me fix this infinite while loop 11 messages
Answered
If statements on errors 21 messages
Linking to a shared library links to it in the cache folder 53 messages
Build System 0.13.x
Exercise 82 of Ziglings is bugging me 6 messages
Answered
How can I destroy a *anyopaque 41 messages
0.13.x
Is there a function to get the machine epsilon of a floating-point type? 15 messages
Answered
Is there a better way of formatting strings in build.zig? 2 messages
compiler not detecting struct member even though it exists 16 messages
Compiler New User Answered
Testing cleanup 11 messages
0.13.x
Linking against windows dll 14 messages
Build System 0.14.x Standard Library New User
How do I make use of comptime to reuse code in this case? 8 messages
Answered
My vm is not doing fibonacci 49 messages
arena.allocator().alloc(...) and other problematic usage patterns. 140 messages
Compiling Zig project that depends on C++ library to WASM for the web 25 messages
Build System Compiler New User 0.13.x