[cairo] Extents under rotation

Cedric Roux sed at free.fr
Wed Dec 11 03:27:50 PST 2013


On 12/11/2013 12:17 PM, Donn wrote:
> On 11/12/2013 10:57, Cedric Roux wrote:
>
>> gcc `pkg-config --cflags --libs cairo` uli_test.c -o test
>> (backquote)
> Gives me the same undefined reference errors as my version.
>
>> or maybe just simply try: gcc uli_test.c -o test -lcairo
>
> $ gcc uli_test.c -o test -lcairo
> uli_test.c:1:19: fatal error: cairo.h: No such file or directory
> #include <cairo.h>
>
>
> I have /usr/include/cairo/cairo.h so that's odd.
>
> \d

try: gcc uli_test.c -o test `pkg-config --cflags --libs cairo`
(the `` stuff at the end)
or (maybe): gcc uli_test.c -o test -lcairo -I/usr/include/cairo
the idea is to put the lib after your code on the command line


More information about the cairo mailing list