I'm trying to use the FFMpeg libraries in a Windows application. I use MingW-w64 to compile FFMpeg with static libraries with architecture once with x86 and once with x86_64. Currently I'm trying to link the 32bit x86 libraries with my VS2008 application. The libraries are added to the library path and VS does not complain about being unable to load a .a file.
However I get several uneresolved symbol errors like ait_rtp_receiver.lib(ait_decoder_lib.obj) : error LNK2001: unresolved external symbol _av_free
I import the FFMpeg header files as extern C and I can see the symbols in the .a without the leading underscore. What can I do to make the name decoration of Mingw-w64's gcc and of the VS compiler suite compatible?
--enable-shared) then use the resulting import *.lib to link it withMSVC. Linking staticMinGWlibraries withMSVCis a pure mess, because you'll also have to link libgcc.a, libgcc_eh.a and others. So you are best by compiling dlls. - Thomas