Bug#499683: libavcodec-dev: libavcodec.h does not contain C++ detection

Reinhard Tartler siretart at tauware.de
Sun Sep 21 16:22:11 UTC 2008


tags 499683 wontfix
stop

"Jon Thackray" <jgt at pobox.com> 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





More information about the pkg-multimedia-maintainers mailing list