zig-help

21196 threads · Page 329 of 424

Weird printing 50 messages
New User
Need help compiling library/app to wasm using zig - missing basic deps 6 messages
Can a zig build exe link to a .DEF file on windows? 17 messages
Can't compile (Windows 10) 22 messages
Compiler New User 0.13.x
How do you switch on multiple values? 9 messages
Accesing a dependency dependcies 3 messages
Standard Library 0.13.x
Will it be easier to understand Zig internals after divorcing LLVM? 9 messages
Answered
build_options not accessible outside function scope 4 messages
What is build.zig equivalent to `-Dtarget="wasm32-wasi"` 7 messages
Answered
`zls` not autocompleting anything coming from a `module` other than `std` 13 messages
What's the expected behavior of floating-point `inf` operations? 3 messages
Answered
Is it possible to instantiate a comptime type with runtime values from command-line? 3 messages
Answered 0.13.x
How to test if bytes are a valid UTF-8 string? 2 messages
Answered
inline switch not working as expected? 2 messages
Integer overflow in for loop 5 messages
New User Answered
Iterator for std.json.Value ArrayHashMap 2 messages
Standard Library Answered
How to get assembly output? (.emit_asm removed) 8 messages
Answered
Performance of hashmaps and pointers to how to optimize? 175 messages
expected type 'comptime_int', found 'type' 6 messages
0.10.x New User
General project advice for io-heavy HTTP server 8 messages
How to cast u64 to i64? 8 messages
writing strings in structs 3 messages
casting to [*c]const [*c]const u8 4 messages
Answered
Struct initialization and passing pointer to itself 14 messages
0.13.x
Casting between array and pointer types 6 messages
Does zig provide a generic clone utility function? 6 messages
return string from user input 17 messages
Answered
Whats the difference between `zig build Dtarget=aarch64-macos` and `zig build` on aarch64-macos? 6 messages
Answered
How is it done that returning concatenation of string literals does not return pointer? 13 messages
Answered
Lib project and exe project to consume that lib 6 messages
New User
Zig build C project with compile_commands.json 26 messages
Compiler
disable automatic indentation for vscode 5 messages
New User Answered
How to make a list of callbacks? 22 messages
New User
Set `-mexec-model` flag from build.zig 3 messages
Answered
String manipulation and memory leak 17 messages
Answered
Initialising tuple with computed values 2 messages
Answered
What does this mean: expected type '*const [0:0]u8', found '[]u8' 44 messages
Answered
Memory leak using the allocator 16 messages
Answered
C interop: error: must use 'enum' tag to refer to type 'llama_log_level' 7 messages
New User
Print enum case without prefix? 5 messages
Problem with setting the library paths 3 messages
where did setMainPkgPath go? 6 messages
CPU Feature Detection 3 messages
Answered
Sorting at comptime 3 messages
Referencing a reified function return type in the function body 8 messages
Answered
Mmap failing to compile on windows? 3 messages
How has your experience been using Zig? 54 messages
New User Answered
Keeping a dir entry for later usage 41 messages
Metaprogramming, slice as default value of a struct field 8 messages
New User Answered
Easiest way to run subset of std tests? 2 messages
Standard Library 0.13.x