zig-help

21196 threads · Page 371 of 424

[solved] removing zig-out and zig-cache folders. Store them in `./bin/...` instead 7 messages
[solved] noob build.zig with 0.11 | Hello world not compiling. Tutorial uses deprecated syntax 23 messages
Standard Library Compiler New User
Should I use a binding instead of translated C? 26 messages
Value with comptime-only type '@TypeOf(.enum_literal)' depends on runtime control flow in loop 12 messages
C import failed: File not found 52 messages
slice of pointer must include end value? 11 messages
Answered
How would you go about storing std.fs.Entry? 16 messages
Passing options to a static C library build with Zig 43 messages
Understanding Async I/O 35 messages
WebAssembly example not working 13 messages
Answered
Compilation error for simple command execution with Zig 0.10.1 5 messages
0.10.x New User
Is there a way to have `options` in build.zig be comptime known? 6 messages
Answered
How can I execute external programs from during build time Build.zig 6 messages
Reading from ChildProcess in non-blocking way 20 messages
understanding []const u8, []u8 and allocation 14 messages
Answered
Idiomatic shortening of "allocator" variable name? 18 messages
Ziglings install, need zig development version 18 messages
What's the opposite of @tagName? 5 messages
Where is Andrew? 5 messages
Answered
WebAssembly: "indirect call to null" 27 messages
Answered
switch on error set 32 messages
Answered
Error trying to use linux/kvm.h 3 messages
Unable to compile using zig version 0.11.0-dev.2325+c964e1082 on MacOS 3 messages
.Stdcall or .C 7 messages
Cast Negative Number to Unsigned Integer at runtime 2 messages
Answered
while with error enum and optional 17 messages
uname system call on macOS 9 messages
@import only accepts string literals? 7 messages
It is possible to have optional anonymous struct literals? 4 messages
Answered
Cryptic compiler error: error: TODO (LLVM) implement const of pointer type 4 messages
Compiler 0.13.x
Can you handle an error when the system runs out of memory? 37 messages
New User Answered
stage3 build fails on macOS, "undefined reference to symbol 'dyld_stub_binder'" 6 messages
Compiler 0.13.x
Changing a value from comptime-known to runtime-known 12 messages
Latest version of zig init-exe seems broken 2 messages
Unable to access option in source file 34 messages
Access on 0 byte terminated alloc'd []u8 segfaults and dumps Entire stack and environment variables. 101 messages
Writing to ChildProcess until it dies 26 messages
Compiler hangs, what data should I collect to report it? 12 messages
Compiler 0.13.x
How to ignore error of std.fmt.bufPrintZ 3 messages
SIGSEGV in a multi-thread program when thread count increases 5 messages
Answered
Stack trace and @returnAddress() 13 messages
Pass allocated memory to ConfigHeaderStep safely 8 messages
Standard Library Compiler 0.13.x
nvim lsp configuration 10 messages
New User
union access of inactive fields 31 messages
importing structs with @import 60 messages
No autocompletion for C imports in vscode 145 messages
error: root struct of file 'test' has no member named 'main' 4 messages
Answered
expect in a loop: identifying which failed 3 messages
Answered
Changing subsystem, mainEntryPoint and excluding std? 12 messages
New User 0.13.x
change linker 7 messages
Compiler