<vpzom>
What do I need to do to see line numbers in error traces? All I'm getting right now is "???:?:?:"
utzig has quit [Ping timeout: 268 seconds]
marijnfs_ has joined #zig
marijnfs has quit [Ping timeout: 245 seconds]
utzig has joined #zig
utzig has quit [Ping timeout: 245 seconds]
neceve has quit [Remote host closed the connection]
mahmudov has quit [Ping timeout: 240 seconds]
<andrewrk>
vpzom, do basic examples work for you? e.g. hello world with @panic("foo");
<andrewrk>
philipwhite, given that 0.5.0 is to be released Monday, I think it would be good to use master branch
rifkik has joined #zig
dimenus has quit [Ping timeout: 240 seconds]
<rifkik>
andrewrk, I feel like we should add a code of conduct, so that people won't act horribly to each other
chemist69 has quit [Ping timeout: 276 seconds]
chemist69 has joined #zig
_whitelogger has joined #zig
rifkik has quit [Remote host closed the connection]
_whitelogger has joined #zig
Mr_Slurpy has joined #zig
philipwhite has quit [Ping timeout: 245 seconds]
diltsman has joined #zig
zxrf has quit [Ping timeout: 252 seconds]
knebulae has quit [Read error: Connection reset by peer]
Mr_Slurpy has quit [Remote host closed the connection]
knebulae has joined #zig
diltsman has quit [Read error: Connection reset by peer]
hasanyasin has joined #zig
<hasanyasin>
Hello all, total Zig noob here. Quick question: I have checked the zig source for command line arguments, but zig compiler CLI itself seems to be in
<hasanyasin>
Hello all, total Zig noob here. Quick question: I have checked the zig source for command line arguments, but zig compiler CLI itself seems to be in CPP.
<hasanyasin>
Is this the standard way to read command line arguments:
<hasanyasin>
os.argv is also assigned in `lib/std/process.zig`, but it seems like in a posix-only block.
traviss has joined #zig
<traviss>
did you try `var arg_it = os.args();`?
<hasanyasin>
There seems to be a difference between 0.4 and master as args --> argv. I saw the method I used above on documentation, but that example was about wasm backend.
<hasanyasin>
If you were to write a tutorial or documentation, what way would you show this?
<hasanyasin>
I am not sure either, and that is why I wanted to ask. :D
<hasanyasin>
By change at master (from args to argv), I meant os.args, not process. args.
<hasanyasin>
Thank you so much @traviss. Maybe I should also check other open source projects under Zig in the wild section on the homepage.
<traviss>
sounds like a good idea. i'm pretty new to zig as well so glad i could help.
<hasanyasin>
(y)
hasanyasin has quit [Ping timeout: 260 seconds]
owl_000 has joined #zig
owl_000 has left #zig ["Leaving"]
hasanyasin has joined #zig
rifkik has joined #zig
hasanyas_ has joined #zig
hasanyasin has quit [Remote host closed the connection]
porky11 has joined #zig
hasanyas_ has left #zig [#zig]
hasanyasin has joined #zig
_whitelogger has joined #zig
mahmudov has joined #zig
donpdonp has quit [Read error: Connection reset by peer]
donpdonp has joined #zig
Hirezias has joined #zig
traviss has quit [Ping timeout: 265 seconds]
hasanyasin has quit [Remote host closed the connection]
<scientes>
how do i link against system libc?
wootehfoot has joined #zig
rifkik has quit [Ping timeout: 276 seconds]
FireFox317 has joined #zig
mahmudov has quit [Ping timeout: 240 seconds]
Hirezias has quit [Ping timeout: 246 seconds]
Hirezias has joined #zig
utzig has joined #zig
mahmudov has joined #zig
rifkik has joined #zig
rifkik has quit [Client Quit]
utzig has quit [Ping timeout: 265 seconds]
rifkik has joined #zig
Ichorio has joined #zig
LargeEpsilon has joined #zig
FireFox317 has quit [Ping timeout: 276 seconds]
mahmudov has quit [Ping timeout: 245 seconds]
<keegans>
scientes: --link c
<keegans>
or linkLibC in build.zig
<scientes>
that actually doesn't do it
<scientes>
-target x86-64-linux-gnu fixed it
<keegans>
oh , the default target is musl for -static , right ?
<keegans>
makes sense then
utzig has joined #zig
waleee-cl has joined #zig
LargeEpsilon has quit [Ping timeout: 240 seconds]
lunamn_ has quit [Ping timeout: 240 seconds]
lunamn has joined #zig
hasanyasin has joined #zig
lunamn has quit [Ping timeout: 276 seconds]
lunamn has joined #zig
mahmudov has joined #zig
return0e has quit [Ping timeout: 240 seconds]
utzig has quit [Read error: Connection reset by peer]
akhetopnu has joined #zig
return0e has joined #zig
hasanyasin has quit [Remote host closed the connection]
hasanyasin has joined #zig
LargeEpsilon has joined #zig
hasanyasin has quit [Ping timeout: 268 seconds]
porky11 has quit [Ping timeout: 264 seconds]
<andrewrk>
scientes, -lc does it. without a target specified it uses the native system
<scientes>
oh ok
lunamn_ has joined #zig
lunamn has quit [Ping timeout: 245 seconds]
Traviss__ has joined #zig
<andrewrk>
keegans, I'm merging your PR locally, playing around with it
<keegans>
awesome let me know if you have any questions with setup
<andrewrk>
I have 1 question - I tried removing crt_begin.o, crtbegin_dynamic.o, crtend_android.o and it builds & links just fine. can you confirm this works?
<andrewrk>
I have reason to believe those .o files are not necessary