Package: libdvdnav-dev
Version: 4.1.2-2
Severity: important


With libdvdread-dev installed (see #480065), compiling as a C code works fine,
but not as C++ code. this worked fine with version 0.1.10-0.2.

$ echo -e "#include <dvdnav/dvdnav.h> \n int main() {return 0;}" | gcc -x c++ 
-o test -

In file included from /usr/include/dvdread/nav_types.h:33,
                 from /usr/include/dvdnav/dvdnav.h:41,
                 from <stdin>:1:
/usr/include/dvdread/ifo_types.h:32:2: error: #error "Must include <inttypes.h> 
or <stdint.h> before any libdvdread header."
In file included from <stdin>:1:
/usr/include/dvdnav/dvdnav.h:293: error: expected ‘,’ or ‘...’ before ‘this’

"this" is a reserved keyword in C++ and "*this" should be replaced with "*self"
in dvdnav.h

If I do so, I still get a compilation error:

$ echo -e "#include <dvdnav/dvdnav.h> \n int main() {return 0;}" | gcc -x c++ 
-o test -

In file included from /usr/include/dvdread/nav_types.h:33,
                 from /usr/include/dvdnav/dvdnav.h:41,
                 from <stdin>:1:
/usr/include/dvdread/ifo_types.h:32:2: error: #error "Must include <inttypes.h> 
or <stdint.h> before any libdvdread header."



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libdvdnav-dev depends on:
ii  libdvdnav4                    4.1.2-2    DVD navigation library

libdvdnav-dev recommends no packages.

-- no debconf information



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

Reply via email to