[Ffmpeg-devel] [PATCH] near is a special keyword

Måns Rullgård mru
Thu Mar 2 19:55:00 CET 2006


Steve Lhomme <slhomme at divxcorp.com> writes:

> Just for the record. I replaced my changes with the original FFMPEG
> code and it compiles fine in MSVC. But guess what, the problem is in
> MinGW (ie gcc) and not MSVC, because we include the DirectX SDK that
> is not part of the MinGW API.

So mingw is including asf.h from lavf and directx.h from microsoft
without being asked to do so?

Could it be that directx.h #includes asf.h hoping to get one that is
part of directx (I've no idea if there is such a file in directx)?  If
you are trying to use lavf directly from the source tree, and set the
compiler include path to include the lavf directory (to find
avformat.h), the wrong asf.h would be picked up.

> Just so that you know that the error is not always Microsoft. Even
> though the SDK had to be fixed here and there to work with MinGW. But
> you can't blame Microsoft for not supporting other compilers than
> theirs. Nobody expects them to be that open.

Sounds to me like the directx sdk is to blame if things broke when it
was brought into the picture.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list