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>
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…]