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
cc -Os -std=c99 -pedantic -Wall -Wextra -Wconversion -c -o schrift.o schrift.c
ar rc libschrift.a schrift.o
ranlib libschrift.a
cc -c -g -Os -std=c99 -pedantic -Wall -Wextra demo.c -o demo.o -I./ -I/usr/include/X11
demo.c:53:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int main()
^
void
1 warning generated.
cc -g -Os demo.o -o demo -L/usr/lib/X11 -L. -lX11 -lXrender -lschrift -lm
ld: warning: search path '/usr/lib/X11' not found
cc -c -g -Os -std=c99 -pedantic -Wall -Wextra stress.c -o stress.o -I./
cc -g -Os stress.o -o stress -L. -lschrift -lm
make 0,66s user 0,42s system 9% cpu 11,749 total
./demo
Can't open X display
Mac OS Sonoma
The text was updated successfully, but these errors were encountered:
Ooof, you've ran into an issue with your X connection and unfortunately libX11 doesn't implement any error handling to tell you what went wrong. In fact I gave a talk that goes into this: https://www.youtube.com/watch?v=aPWFLkHRIAQ&t=730s
You could try checking your DISPLAY environment variable, try other x applications xeyes?, If you want to download the zig compiler you could try running one of my x11 examples in https://github.com/marler8997/zigx (download zig 0.12.0 and run zig run example.zig), and it should give you a nice error message that tells you exactly what's wrong with your X11 setup.
Can't open X display
Mac OS Sonoma
The text was updated successfully, but these errors were encountered: