[Ffmpeg-devel] inttypes.h

Uoti Urpala uoti.urpala
Thu Nov 23 08:01:18 CET 2006


On Wed, 2006-11-22 at 21:41 -0500, Rich Felker wrote:
> On Wed, Nov 22, 2006 at 10:38:20AM +0200, Uoti Urpala wrote:
> > On Wed, 2006-11-22 at 09:15 +0100, Steve Lhomme wrote:
> > > - inline functions (used in FFMPEG)
> > 
> > What's broken in gcc are inline functions that are not declared static.
> > Almost all inline uses in FFmpeg are for static functions. Fixing the
> > exceptions shouldn't take much effort if they cause problems.
> 
> Non-static inline is nonsense and not even specified by ISO C as far
> as I know.

It is specified. The problem is that the compiler should produce an
external definition of the function if and only if a declaration in the
translation unit includes "extern" and not just "inline". In gcc the
meaning of "extern" is reversed; it _prevents_ gcc from creating an
external definition.





More information about the ffmpeg-devel mailing list