Nick Lewycky wrote: > Package: libcairomm-1.0-dev > Version: 0.6.0-2 > Severity: normal > > The examples for PsSurface, PdfSurface and SvgSurface don't link: > > $ g++ `pkg-config --cflags --libs cairomm-1.0` cairograph.cpp > /tmp/ccqYR7Sy.o: In function `main': > cairograph.cpp:(.text+0x141): undefined reference to > `Cairo::SvgSurface::create(std::basic_string<char, std::char_traits<char>, > std::allocator<char> >, double, double)' > collect2: ld returned 1 exit status > $ g++ `pkg-config --cflags --libs cairomm-1.0` > /usr/share/doc/libcairomm-1.0-dev/examples/svg-surface/main.cc -o main > /tmp/ccZcxUsu.o: In function `main': > main.cc:(.text+0x124): undefined reference to > `Cairo::SvgSurface::create(std::basic_string<char, std::char_traits<char>, > std::allocator<char> >, double, double)' > collect2: ld returned 1 exit status > $ g++ `pkg-config --cflags --libs cairomm-1.0` > /usr/share/doc/libcairomm-1.0-dev/examples/ps-surface/main.cc -o main > /tmp/ccLi5Woc.o: In function `main': > main.cc:(.text+0x124): undefined reference to > `Cairo::PsSurface::create(std::basic_string<char, std::char_traits<char>, > std::allocator<char> >, double, double)' > collect2: ld returned 1 exit status > $ g++ `pkg-config --cflags --libs cairomm-1.0` > /usr/share/doc/libcairomm-1.0-dev/examples/pdf-surface/main.cc -o main > /tmp/ccxdZmCy.o: In function `main': > main.cc:(.text+0x132): undefined reference to > `Cairo::PdfSurface::create(std::basic_string<char, std::char_traits<char>, > std::allocator<char> >, double, double)' > collect2: ld returned 1 exit status > $ g++ `pkg-config --cflags --libs cairomm-1.0` > /usr/share/doc/libcairomm-1.0-dev/examples/png_file/main.cc -o main > $ ./main > Wrote png file "image.png" > $ eog image.png > > > Yep, ImageSurface works fine. Perhaps they aren't linked in? Also, the > examples are protected by #ifdef's that are supposed to compile-time > detect whether these surfaces are enabled in Cairo (not in cairomm). > They aren't being triggered.
They were not supported in older cairos (<1.2.0) so were not enabled in the C library. Newer cairo supports them, but the cairomm 0.6.0 has not yet been updated/been rebuilt to reflect this. Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]