[Libav-user] Linking ffmpeg libraries on Windows

Gustav González xtingray at gmail.com
Thu Apr 5 03:03:17 CEST 2012

2012/4/4 Matthew Einhorn <moiein2000 at gmail.com>:
> Dunno if you're using VC++, but to use the exported dll functions in a
> c++ project you have to place the includes (e.g. avformat.h) in extern
> "C" braces. Otherwise the names get mangled up.

I'm using MinGw and I'm using the extern C braces:

#ifdef __cplusplus
extern "C" {
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/mathematics.h"

The cause of the problem must be other :(

  Gustav Gonzalez
  xtingray at gmail.com

More information about the Libav-user mailing list