On Fri, Mar 30, 2007 at 06:20:22PM -0800, Rafael Cortina wrote:
I have compiled the libraries using cygwin. I am trying to use them in an MSVC++ app. I always get the following message.
error LNK2019: unresolved external symbol "int __cdecl av_fifo_init(struct AVFifoBuffer *,int)" (?av_fifo_init@@YAHPAUAVFifoBuffer@@H at Z) referenced in function "public: virtual long __thiscall CFFStream::Init(struct UrlInfo *)" (?Init at CFFStream@@UAEJPAUUrlInfo@@@Z)
A few other functions are not found but all have to do with av_fifo_xxxx.
I have tried to recompile the libraries with mingw and I get exaclty the same message. I have inspected the avutil.lib and the functions are there.
Does anybody have any idea what the problem/solution may be?
1. PLEASE do not reply into unrelated threads when asking about a new topic! 2. FFmpeg libraries are C code, not C++! Put extern "C" { } around the includes for the headers if you want to include C headers in a C++ program, and then pray that it works (C++ is not explicitly supported but probably works). Rich