[Xcb-commit] tutorial.mdwn
XCB site
xcb at freedesktop.org
Mon Jul 11 09:00:30 PDT 2011
tutorial.mdwn | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 9c3993616749032ba732b2c26f0cea7ea2a667c1
Author: AdamMajewski <AdamMajewski at web>
Date: Mon Jul 11 09:00:29 2011 -0700
simple way of compiling
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()`:
More information about the xcb-commit
mailing list