summaryrefslogtreecommitdiff
path: root/tutorial.mdwn
diff options
context:
space:
mode:
authorAdamMajewski <AdamMajewski@web>2011-07-11 09:00:29 -0700
committerXCB site <xcb@freedesktop.org>2011-07-11 09:00:29 -0700
commit9c3993616749032ba732b2c26f0cea7ea2a667c1 (patch)
tree8b8103ea4e74ca1166dcb10312f5e83c189e4986 /tutorial.mdwn
parent753decddb5cf7e0140e919a93910045d0cba42a9 (diff)
simple way of compiling
Diffstat (limited to 'tutorial.mdwn')
-rw-r--r--tutorial.mdwn4
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()`: