zig-help

21196 threads · Page 203 of 424

cross-compiling c with zig cc 25 messages
Answered
Using std.sort.block() 118 messages
Is it possible to store information within an error? 4 messages
New User Answered 0.13.x
How to include a `.h` file of my own not in a `build.zig` file? 15 messages
Convert .zig file to .c 6 messages
std.mem.trim* return const-ness 21 messages
How to correctly store a buffered writer in a struct field? 9 messages
Answered
Packed struct panics in debug, parses in fast or small optimizated builds? 29 messages
Answered
How could I return a generic struct of a non specified type? 37 messages
New User Answered 0.13.x
How to check if defined? 8 messages
0.13.x
How to run a command in terminal using zig 5 messages
0.13.x
Swap bytes 6 messages
Answered
Copy chunks of bytes at once 25 messages
Answered
Iterate std.meta.fields and switch over union variant 61 messages
Any idea why I'd get a "C import failed" message only during 'zig test' but 'zig build' works fine? 41 messages
New User Answered 0.12.x
passing as a parameter a function that can return an error 9 messages
Linking to sibling dependency shared library 52 messages
Build System Answered
Best way to implement a simple double buffer 11 messages
Trouble storing []const u8 inside BoundedArray of u8s 13 messages
Answered
writing simple std.http.Server 26 messages
Convert bytes to some type 5 messages
Answered
putGetPtr in hash map 2 messages
Standard Library Answered 0.13.x
Weird build error in `build.zig` when linking the raylib C library with zig. 19 messages
Build System 0.12.x
Netinet Header 5 messages
New User Answered 0.13.x
Cast [*]u8 to *struct and dereference pointer field 19 messages
Answered
Pointer casting and alignment 15 messages
New User Answered 0.13.x
Translating C macros 3 messages
0.14.x New User Answered
Giving methods to a type which is essentially just a fixed-size array 4 messages
Answered
compile time generate switch statement 24 messages
Answered
Function that takes a parameter of a type with an error: !foo 10 messages
Get the name of directory from std.fs.Dir? 6 messages
Answered 0.13.x
Build step depending on successful compilation 6 messages
Build System Answered
How to make a dent in preprocessor-heavy C projects? 9 messages
New User
operation is runtime due to this operand 5 messages
Answered
Getting error: file exists in multiple modules when trying to build raylib as git submodule 2 messages
Build System 0.14.x New User Answered
What is x in git checkout release/18.x ? 10 messages
comptime generate function 11 messages
Get length of file? 5 messages
Standard Library
string literal defaults to sentinel 27 messages
Answered
zls not working with package manager 8 messages
Build System Compiler Answered 0.13.x
How to get a std.io.Reader for a slice of bytes? 15 messages
Answered
Confusing error 16 messages
Build System 0.14.x Compiler Answered
Parsing Zon files 13 messages
AOC 2023 day 3 part 1 18 messages
Get number from boolean 2 messages
New User Answered
use c library with weird flags 2 messages
Answered
Expected type '*process.Child', found '*const process.Child' 5 messages
LLVM 19 not supported? 7 messages
failing to make and use array of struct, comptime errors 21 messages
referencing everything outside of test 6 messages