[MPlayer-dev-eng] CVS breaks compilation in loader/DirectShow/ with gcc3

pl p_l at gmx.fr
Thu Oct 4 17:23:43 CEST 2001


On Thu, Oct 04, 2001 at 04:32:21PM +0200, Arpi wrote:
[...]
> > In DS_VideoDecoder.cpp:
> > Several cerr/cout are in the code whereas #include's are commented
> > out (<cstdio>) and gcc3 does not like that at all.
> > But since it's written "killed unneeded dependency on c++ headers" I'll let
> > you do what you intended to (comment out cerr/cout or use printf)
> 
> I don't want to make deep changes in it to keep syncable with avifile CVS.

> Isn't there a .h header which defines those?
Including <iostream.h> fixes the problem but indeed it's the same thing
as <iostream>, since cout/cerr are typical c++ stuff :(

> Please send the the whole output of make errors.

gcc-3.0 -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
-fomit-frame-pointer -I. -I.. -I/usr/local/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-DNOAVIFILE_HEADERS -fexceptions  -o DS_VideoDecoder.o
DS_VideoDecoder.cpp
DS_VideoDecoder.cpp: In constructor
`DS_VideoDecoder::DS_VideoDecoder(const 
   CodecInfo&, const BITMAPINFOHEADER&, int)':
DS_VideoDecoder.cpp:96: `cerr' undeclared (first use this function)
DS_VideoDecoder.cpp:96: (Each undeclared identifier is reported only
once for 
   each function it appears in.)
DS_VideoDecoder.cpp:96: `endl' undeclared (first use this function)
DS_VideoDecoder.cpp:148: `cout' undeclared (first use this function)
DS_VideoDecoder.cpp:148: `hex' undeclared (first use this function)
DS_VideoDecoder.cpp:148: `dec' undeclared (first use this function)
DS_VideoDecoder.cpp:498:2: warning: #warning NOT SURE
DS_VideoDecoder.cpp:513:2: warning: #warning FIXME
make[1]: *** [DS_VideoDecoder.o] Error 1
make[1]: Leaving directory
`/usr/local/src/mplayer-cvs/main/loader/DirectShow'
make: *** [loader/DirectShow/libDS_Filter.a] Error 2

> (I should install gcc 3.x again, but i don't want to break stuff :)
Wise decision I guess, some say "do not upgrade a working system".
[except for fun or profit :]

[...]
--
Best regards,
 pl



More information about the MPlayer-dev-eng mailing list