[Xcb] newbie help

Ulrich Eckhardt doomster at knuut.de
Sat Oct 25 01:54:26 PDT 2008


On Saturday 25 October 2008 09:57:42 Michael Grunditz wrote:
> I am evaluating xcb , and have some probably stupid questions:
>
> 1) I have tried to use xcb_image_create_from_bitmap_data in my test
> programs , but it won't compile I get undefined reference. I have the
> relevant includes.

XCB uses pkg-config. Try calling

  pkg-config xcb-image --cflags
  pkg-config xcb-image --libs
 
When compiling via the commandline, use backticks:

  gcc -Wall `pkg-config xcb-image --cflags --libs` source.c


No idea about the other problem, I'm not that versed in XCB use either.

Uli


More information about the Xcb mailing list