[Libav-user] Compile with g++
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Oct 13 23:45:52 CEST 2013
Andy Shaules <bowljoman at ...> writes:
> extern "C" {
> #include <avcodec.h>
> #include <avformat.h>
> #include <swscale.h>
> #include <imgutils.h>
> }
Please note that this is a wrong (or bad)
example, there is no guarantee that headers
in different directories do not have
identical names (and at least one header
shares its name with a common system header).
The example should be:
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/imgutils.h>
}
Carl Eugen
More information about the Libav-user
mailing list