diff options
author | AdamMajewski <AdamMajewski@web> | 2011-07-11 09:00:29 -0700 |
---|---|---|
committer | XCB site <xcb@freedesktop.org> | 2011-07-11 09:00:29 -0700 |
commit | 9c3993616749032ba732b2c26f0cea7ea2a667c1 (patch) | |
tree | 8b8103ea4e74ca1166dcb10312f5e83c189e4986 /tutorial.mdwn | |
parent | 753decddb5cf7e0140e919a93910045d0cba42a9 (diff) |
simple way of compiling
Diffstat (limited to 'tutorial.mdwn')
-rw-r--r-- | tutorial.mdwn | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tutorial.mdwn b/tutorial.mdwn index df68609..6e56706 100644 --- a/tutorial.mdwn +++ b/tutorial.mdwn @@ -294,6 +294,10 @@ Compiling XCB-based programs requires linking them with the XCB library. This is gcc -Wall prog.c -o prog `pkg-config --cflags --libs xcb` +or simply : + + gcc -Wall prog.c -lxcb + # Opening and closing the connection to an X server An X program first needs to open the connection to the X server, using `xcb_connect()`: |