spartrekus / display-bitmap-on-X11

GNU General Public License v3.0
0 stars 0 forks source link

fatal error C1034: X11/Xlib.h #1

Open xo0 opened 7 years ago

xo0 commented 7 years ago

hello , i use the window cmd to run,but the include file is not inclued, i will not c++, but i want pictures to xbm function, can not generate a window under the exe? Thanks! Thanks!

spartrekus commented 7 years ago

I have downloaded it and did the following. I works.

~/Downloads/x11-display-bmp-xbm$ make gcc -lX11 xshow.c -o xshow

./xshow

The xlib is needed. Have you done : apt-get install libx11-dev before?

include <X11/Xlib.h>

include <X11/Xutil.h> / BitmapOpenFailed, etc. /