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.

Thanks,
Nick Lewycky

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.6
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libcairomm-1.0-dev depends on:
ii  libcairo2-dev                 1.2.0-2    Development files for the Cairo 2D
ii  libcairomm-1.0-0              0.6.0-2    C++ wrappers for Cairo (shared lib

libcairomm-1.0-dev recommends no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to