Help with programming using libcairo
Kevin O'Gorman
kogorman at gmail.com
Thu May 16 21:35:59 UTC 2013
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.
--
Kevin O'Gorman
programmer, n. an organism that transmutes caffeine into software.
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130516/a4b37fc9/attachment.html>
More information about the ubuntu-users
mailing list