Help with programming using libcairo
Tony Arnold
tony.arnold at manchester.ac.uk
Thu May 16 21:50:12 UTC 2013
Kevin,
On 16/05/13 22:35, Kevin O'Gorman wrote:
> I'm trying to work with the tutorial at http://cairographics.org/tutorial/
> but cannot get anything to compile and link.
>
> I entered their first example, and all of the cairo_* symbols show up
> undefined in the link phase.
>
> I'm compiling the tutorial's simplest example, a hello.c program, using
> gcc `pkg-config --cflags --libs cairo` -static hello.c -o hello
>
> and it looks like the library's empty. However, when I use nm(1) on
> /usr/lib/i386-linux-gnu/cairo.so
> I see those symbols. The nm utility does not seem to work on the .so
> library, even after following symlinks.
>
> pkg-config --libs cairo
> just emits "-lcairo"
>
> I've tried inserting -L /usr/lib/i36-linux-gnu/ to no avail.
>
> I'm not sure what else to try.
Can you post your example program somewhere?
Regards,
Tony.
--
Tony Arnold, Tel: +44 (0) 161 275 6093
Head of IT Security, Fax: +44 (0) 705 344 3082
University of Manchester, Mob: +44 (0) 773 330 0039
Manchester M13 9PL. Email: tony.arnold at manchester.ac.uk
More information about the ubuntu-users
mailing list