[FFmpeg-user] ffmpeg.c:4492: undefined reference to `_avdevice_register_all'

Roger Pack rogerdpack2 at gmail.com
Thu Sep 8 23:14:19 CEST 2011


>> Any help would be great.
>
> I contacted MinGW-w64 and they told me that __declspec(dllexport), needs to
> be used to export the symbols.
>
> Meaning:
> __declspec(dllexport) void avdevice_register_all(void);
>
> and so on.


Or you can have it in an extern “C”  {} block or a .def file can't you?

http://betterlogic.com/roger/2010/07/visual-studio-unable-to-register-dll

-r


More information about the ffmpeg-user mailing list