[FFmpeg-devel] (MSVC++) warning LNK4248: unresolved typeref token (01000015) for 'AVDictionary'; image may not run

John Dexter jdxsolutions at gmail.com
Thu Feb 23 10:00:28 CET 2012


On 23 February 2012 06:56, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
>
> On 23 Feb 2012, at 07:44, Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> wrote:
>
> > If you do that your code an break at any time with any FFmpeg update.
> > We make no promises on the internal format of the AVDictionary struct.
> > I haven't been able to understand what the MSDN description of the
> > warning is trying to say, but it sounds like it's an issue with CLR (i.e.
> > managed code) interoperability.
> > In that case you just should make sure to not use that type from managed
> > code (that probably actually applies to all FFmpeg types, e.g. you are not
> > allowed to make assumptions on the size of AVCodecContext, but the managed
> > code interop most likely will).
>
> After some more reading: everything should be working just fine, you can
> just disable that warning (or do not compile with /clr).
> I guess if you tried to do some type inspection from CLR code (I assume
> CLR like Java allows you to do that) on that specific type you would get
> some strange results but otherwise there should be no problem.


Thanks, that cleared it up. We never use CLR in C++ but /clr was set
in the project I'm working on for some reason. Simply turning that off
cleared the warning.

Thanks again!
John.


More information about the ffmpeg-devel mailing list