[Ffmpeg-devel] [PATCH] rtp.h warning

Rich Felker dalias
Thu Mar 22 22:27:27 CET 2007


On Thu, Mar 22, 2007 at 04:24:32PM -0400, Glenn Maynard wrote:
> On Thu, Mar 22, 2007 at 03:10:21PM -0500, Rich Felker wrote:
> > On Thu, Mar 22, 2007 at 02:12:05PM -0400, Glenn Maynard wrote:
> > > rtp.h generates this in VC:
> > > 
> > > include\ffmpeg\rtp.h(99) : warning C4510: 'avcodec::AVRtpPayloadType_s' :
> > > default constructor could not be generated
> > > warning C4610: struct 'avcodec::AVRtpPayloadType_s' can never be
> > > instantiated - user defined constructor required
> > 
> > This is C code, not C++ code. Of course it should not be expected to
> > compile as C++ code..
> 
> It's a C library; the external headers should compile in C++ code.  This

If you put extern "C" { } around them, then yes. Otherwise, all bets
are off. C is not a subset of C++; the same code means different
things in C++ than what it means in C.

Is rtp.h supposed to be an external header anyway??

Rich




More information about the ffmpeg-devel mailing list