Ok. But Ubuntu, a Debian derivative, has taken the decision to fix the problem. So now, C++ source is non-portable between Debian and Ubuntu. This doesn't do much for the user experience.

----- Original Message ----- From: "Reinhard Tartler" <[EMAIL PROTECTED]>
To: "Jon Thackray" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 21, 2008 5:22 PM
Subject: Re: Bug#499683: libavcodec-dev: libavcodec.h does not contain C++ detection



tags 499683 wontfix
stop

"Jon Thackray" <[EMAIL PROTECTED]> writes:
When including avcodec.h in C++ source (and also avutils.h and
swscale.h), the compiler mangles the names. This then causes link
failures because the corresponding libraries have unmangled names. The
code that is missing is

#ifdef __cplusplus
extern "C" {
#endif

at the start of the file (just after the multiple inclusion guard) and
the corresponding

Why don't you include this in the file that is including ffmpeg's
headers?

ffmpeg is an C only project. You cannot expect every random C library to
support being included in an C++ project.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4







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

Reply via email to