ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<adamkowalski> unfortunately not
<adamkowalski> Am I allowed to post code snippets?
<adamkowalski> or is that frowned upon
<dimenus> nope that's fine, use pastebin / bpaste / etc
<mq32> i'll just leave this here: https://mq32.de/public/zgs-01.mp4
<mq32> real hardware test of today :)
adamkowalski has quit [Ping timeout: 245 seconds]
dimenus has quit [Ping timeout: 245 seconds]
adamkowalski has joined #zig
<mq32> and with this: gn8 (or good morning, daurnimator) :D
<adamkowalski> dimenus okay I created an empty zig project with zig init exe
<adamkowalski> I'll paste my code and show you what I'm doing
waleee-cl has quit [Quit: Connection closed for inactivity]
<adamkowalski> thats my build file
<adamkowalski> thats my src/main.zig
<adamkowalski> i've even hard coded the paths
<adamkowalski> Hmm I tried with glfw as well with no luck
<adamkowalski> exe.addIncludeDir("/usr/local/Cellar/glfw/3.3/include/");
<adamkowalski> exe.linkSystemLibrary("c");
<adamkowalski> exe.linkSystemLibrary("/usr/local/Cellar/glfw/3.3/lib/libglfw.3.3.dylib");
knebulae has quit [Ping timeout: 240 seconds]
knebulae has joined #zig
euantor has quit [Ping timeout: 252 seconds]
l1x has quit [Ping timeout: 252 seconds]
tracernz has quit [Ping timeout: 250 seconds]
euantor has joined #zig
lqd has quit [Ping timeout: 252 seconds]
lqd has joined #zig
Jezza__ has quit [Ping timeout: 245 seconds]
strmpnk has quit [Ping timeout: 252 seconds]
strmpnk has joined #zig
tracernz has joined #zig
l1x has joined #zig
lunamn_ has quit [Quit: leaving]
marijnfs has quit [Ping timeout: 252 seconds]
marijnfs has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adamkowalski has quit [Ping timeout: 246 seconds]
mahmudov has quit [Ping timeout: 265 seconds]
adamkowalski has joined #zig
muffindrake has quit [Quit: muffindrake]
muffindrake has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
muffindrake has quit [Ping timeout: 246 seconds]
muffindrake has joined #zig
doublex_ has quit [Ping timeout: 250 seconds]
doublex has joined #zig
fengb has joined #zig
chemist69 has quit [Ping timeout: 246 seconds]
chemist69 has joined #zig
ky0ko_ has joined #zig
ky0ko has quit [Disconnected by services]
ky0ko_ is now known as ky0ko
ky1ko has joined #zig
_whitelogger has joined #zig
_whitelogger has joined #zig
ltriant has quit [Quit: leaving]
wilsonk has quit [*.net *.split]
return0e has quit [*.net *.split]
halbeno has quit [*.net *.split]
SimonNa has quit [*.net *.split]
demizer has quit [*.net *.split]
nikoala has quit [*.net *.split]
nrdmn has quit [*.net *.split]
Pistahh has quit [*.net *.split]
s-ol has quit [*.net *.split]
mmx870 has quit [*.net *.split]
FSX has quit [*.net *.split]
bkleiner has quit [*.net *.split]
tbodt has quit [*.net *.split]
mq32 has quit [Ping timeout: 262 seconds]
adamkowalski has joined #zig
FSX has joined #zig
tbodt has joined #zig
bkleiner has joined #zig
mq32 has joined #zig
halbeno has joined #zig
nikoala has joined #zig
Pistahh has joined #zig
s-ol has joined #zig
return0e has joined #zig
nrdmn has joined #zig
wilsonk has joined #zig
demizer has joined #zig
mmx870 has joined #zig
fengb has quit [Ping timeout: 260 seconds]
wilsonk has quit [*.net *.split]
return0e has quit [*.net *.split]
halbeno has quit [*.net *.split]
demizer has quit [*.net *.split]
nikoala has quit [*.net *.split]
nrdmn has quit [*.net *.split]
Pistahh has quit [*.net *.split]
s-ol has quit [*.net *.split]
mmx870 has quit [*.net *.split]
wilsonk has joined #zig
return0e has joined #zig
s-ol has joined #zig
nrdmn has joined #zig
halbeno has joined #zig
nikoala has joined #zig
demizer has joined #zig
Pistahh has joined #zig
mmx870 has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
return0e has quit [Ping timeout: 268 seconds]
jjido has joined #zig
return0e has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 276 seconds]
traviss has quit [Read error: Connection reset by peer]
doublex has quit [Ping timeout: 252 seconds]
doublex has joined #zig
marijnfs has quit [Quit: WeeChat 2.6]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #zig
dingenskirchen1 is now known as dingenskirchen
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #zig
<euantor> @adamkowalski I know you're not here now, but in case you check out the logs later, try this for SDL 2 on macOS: https://github.com/euantorano/zig-ci/blob/master/sdl/build.zig
return0e_ has joined #zig
return0e has quit [Ping timeout: 245 seconds]
return0e has joined #zig
Ichorio has joined #zig
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 246 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 252 seconds]
adamkowalski has joined #zig
dingenskirchen has quit [Quit: dingenskirchen]
adamkowalski has quit [Ping timeout: 245 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 250 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 245 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 245 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 250 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 265 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 265 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 252 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 250 seconds]
adamkowalski has joined #zig
return0e_ has quit [Read error: Connection reset by peer]
return0e_ has joined #zig
Ichorio has quit [Ping timeout: 245 seconds]
dingenskirchen has joined #zig
<bgiannan> euantor, curious why you need the addIncludeDir/addFrameworkDir ? Here's my build.zig https://0x0.st/z6K5.zig
adamkowalski has quit [Ping timeout: 246 seconds]
<euantor> bgiannan: Did you install sdl2 via homebrew? The only way I could get it to work when installed via homebrew was by being explicit
<euantor> (using zig 0.5.0, haven't tried master)
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 250 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 250 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 245 seconds]
frmdstryr has joined #zig
<frmdstryr> Can zig be used with Qt/Gtk? If so are there any example repo's anywhere?
<mq32> oof.
adamkowalski has joined #zig
<mq32> I don't think Qt is "nice" to use, as it's a full-featured C++ API
<mq32> Gtk may be possible if you can port the headers
<mq32> but afaik GObject uses a pretty complicated macro system
adamkowalski has quit [Ping timeout: 250 seconds]
adamkowalski has joined #zig
adamkowalski has quit [Ping timeout: 246 seconds]
return0__ has joined #zig
return0e_ has quit [Ping timeout: 252 seconds]
frmdstryr has quit [Ping timeout: 245 seconds]
adamkowalski has joined #zig
frmdstryr has joined #zig
dimenus has joined #zig
adamkowalski has quit [Ping timeout: 265 seconds]
adamkowalski has joined #zig
fengb has joined #zig
Snektron has joined #zig
adamkowalski has quit [Ping timeout: 246 seconds]
return0__ has quit [Read error: Connection reset by peer]
return0e_ has joined #zig
adamkowalski has joined #zig
dimenus has quit [Remote host closed the connection]
adamkowalski has quit [Ping timeout: 246 seconds]
dimenus has joined #zig
adamkowalski has joined #zig
<bgiannan> euantor, yes installed via homebrew
adamkowalski has quit [Ping timeout: 265 seconds]
adamkowalski has joined #zig
<euantor> Oh, weird. On my system it just threw errors about being unable to find SDL without it
<bgiannan> weird because brew ln everything so zig searches for SDL in /usr/local/include and finds the ln-ed SDL2 directory
waleee-cl has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
<euantor> I should probably try it again, just in case. I did originally try without it and it failed though
adamkowalski has joined #zig
BitPuffin has joined #zig
Demos[m] has joined #zig
dtz has joined #zig
D3zmodos has joined #zig
mattmurr has joined #zig
adamkowalski has quit [Ping timeout: 240 seconds]
adamkowalski has joined #zig
muffindrake has quit [Ping timeout: 252 seconds]
adamkowalski has quit [Ping timeout: 240 seconds]
muffindrake has joined #zig
adamkowalski has joined #zig
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #zig
<adamkowalski> Is there a way to change the color of the `std.debug.warn` output?
<frmdstryr> You can make your own function that adds a ansi color prefix and suffix
lunamn has joined #zig
adamkowalski has quit [Read error: Connection reset by peer]
lunamn_ has joined #zig
lunamn has quit [Ping timeout: 246 seconds]
casaca has quit [Ping timeout: 276 seconds]
casaca has joined #zig
return0e has quit [Remote host closed the connection]
return0e has joined #zig
return0e has quit [Ping timeout: 240 seconds]
casaca has quit [Ping timeout: 265 seconds]
casaca has joined #zig
<AlexMax> Hi folks. If I am trying to use `zig build` to build C source files that target Windows, how do I ensure that the build and link step are passed the correct parameters, so I don't run into any missing windows symbols or headers?
<AlexMax> I've tried to addIncludeDir/addLibPath/linkSystemLibraryName my way to a successful compile, but my build.zig is turning into a morass and I can't help but think there might be an easier way.
casaca has quit [Ping timeout: 250 seconds]
casaca has joined #zig
wootehfoot has joined #zig
<shakesoda> AlexMax: linkSystemLibrary should work, but make sure you use a build from master
<shakesoda> the detection for missing pkg-config was broken until just recently
tgschultz has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dimenus> AlexMax: can you paste your build.zig?
doublex has quit [Ping timeout: 240 seconds]
ForLoveOfCats has joined #zig
<ForLoveOfCats> Figured I might as well ask. Is there any way to achieve something like distinct types in Zig? (beside just wrapping it in a struct)
<ForLoveOfCats> (and yes I saw the proposal, I'm just curious if there is any way to achieve something like it "right now")
doublex has joined #zig
dimenus has quit [Read error: Connection reset by peer]
Srekel has joined #zig
<Srekel> hi, I got an error message that I noticed people had talked about in the logs, but I wasn't sure if it got fixed? (It's due to a bug on my part, but it should be fixed so you get a better error message :) )
dimenus|home has joined #zig
<Srekel> "The following command exited with error code 3221225477:"
<Srekel> was mentioned here: https://freenode.irclog.whitequark.org/zig/2019-11-11 but I haven't dug through the log to see what was done about it
<Srekel> in my case, it happens if I do this:
<Srekel> for (self.component_set.toSparseSlice()) |ent, dense| {
<Srekel> ...but toSparseSlice has void return type instead of slice:
<Srekel> pub fn toSparseSlice(self: Self) void {
jokoon has joined #zig
jokoon has quit [Remote host closed the connection]
jokoon has joined #zig
SimonNa has joined #zig
mahmudov has joined #zig
Ichorio has joined #zig
Ichorio has quit [Ping timeout: 250 seconds]
Ichorio has joined #zig
ky0ko has quit [Remote host closed the connection]
return0e has joined #zig
return0e has quit [Client Quit]
<Srekel> I just posted a new library (package?) here: https://github.com/Srekel/zig-sparse-set Feedback appreciated! (Though going to sleep, so make sure to ping me)
<fengb> Neat
<AlexMax> shakesoda, dimenus|home sorry, i was at work and was only doing zig on my lunch hour
<AlexMax> now that I've had an opportunity to look at it, I found out that I wasn't linking against libC
<dimenus|home> ah, good stuff
<AlexMax> That allowed me to compile the C files, but when it came time to link, I'm now running into missing symbols like __imp__SHDeleteKeyA and __imp__SendMessageA
<AlexMax> I think that first one is located in shlwapi but I then get an error saying that it can't find libshlwapi.a when I try and link against it
waleee-cl has quit [Quit: Connection closed for inactivity]
<AlexMax> I mean, I do know where those libraries are on my linux system, they're in my system's mingw directory. But I thought zig was suppsoed to bring in mingw for me.
<AlexMax> it clearly brought in the include files
<AlexMax> and libc, I'm not getting any errors about missing C stdlib functions
<shakesoda> it should be able to find those with linkSystemLibrary("shlwapi")
<AlexMax> that's exactly what I have, and yet when I `zig build` I get lld: error: could not open 'libshlwapi.a': No such file or directory
<shakesoda> (it does on my windows system, at least)
<AlexMax> I'm on Linux, if it helps.
<shakesoda> hm, I haven't tried to do any linking windows stuff in cross builds
jokoon has quit [Quit: jokoon]
<AlexMax> I think I can just add my system's mingw directory to get it working, but I thought zig was supposed to bring in stuff automatically.
<AlexMax> I know that as soon as I added the thing about libC that my next compile took a long time as it presumably was builiding the environment necessary to build windows apps
<AlexMax> so I would've throught the proper libraries would've come along for the ride.
jjido has joined #zig
bjorob has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ichorio has quit [Ping timeout: 250 seconds]