You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile and run example.zig on windows 11 but when I compile example.zig with zig build-exe example.zig there is no errors
but when I run it I get this error
I ran into this same error on my windows machine when I set my DISPLAY environment variable to :0. As you can see from the stack trace, we're calling connectUnixDisplayNum, which causes us to try and create a unix socket which won't work on windows.
I'm actually not sure how the various X Servers on windows (like MobaXTERM) expect applications to interpret DISPLAY:0 so for now I've just pushed a commit that will print this error message:
error: unsure how to connect to DISPLAY :0 on windows, how about specifing a hostname? i.e. localhost:0
If anyone can find out how :0 is actually supposed to behave on windows let me know and I'll implement it. It's likely there's actually no standard here since I'm not sure it's common for X applications to actually run on native windows.
I'm trying to compile and run example.zig on windows 11 but when I compile example.zig with zig build-exe example.zig there is no errors
but when I run it I get this error
The text was updated successfully, but these errors were encountered: