[FFmpeg-devel] compile error for few days

Alexander Strasser eclipse7 at gmx.net
Mon Jul 2 18:52:39 CEST 2012


Reimar Döffinger wrote:
> On 1 Jul 2012, at 13:56, Alexander Strasser <eclipse7 at gmx.net> wrote:
> >  Also I am not sure how often we export inline functions that contain
> > C99 specific features in public API, like in this case designated
> > initializers for aggregate/union types.
> > 
> >  IIRC Reimar complained from time to time to not use C99 features that
> > did not get into the very recent C++ standard in public headers.
> No, I only complain about the ridiculousness of these very useful features still not being included in C++ and an argument why you really should not be using such a crap language as C++ but in very exceptional circumstances.
> I occasionally grow soft on people insisting otherwise though.


  Well, I have been lately talking about that stuff to some other
Programmers. They simply did not get my point nor why it is a very
bad idea to not have those in the new C++ standard...

> > Maybe we should come up with some guide lines
> > about this. E.g. if it is in a macro it might be ok to expose it as it
> > won't trigger compile errors when used from C++ assuming that macro is
> > not used by the client source code.
> If you want to avoid it, just change "make test" to push all public headers through gcc in C++ mode (with the extern "C" and a few defines we already require around it).
> Nobody will care if its just guidelines not backed by a test anyway.

  Good suggestion; I put it in my queue and will look into that.


More information about the ffmpeg-devel mailing list