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

pl p_l at gmx.fr
Thu Oct 4 16:24:53 CEST 2001


Hi,

The current CVS no longer compiles on debian sid with gcc-3.0.
(maybe other distribs)

It stills works with plain gcc (2.95.x).

It looks like #include's issue in loader/DirectShow/.

In libwin32.h:
A missing #include <stdlib.h> which defines abs()/labs():
gcc3 does not compile it.

Fix:
--- libwin32.h~  Thu Oct  4 15:51:23 2001
+++ libwin32.h       Thu Oct  4 15:41:06 2001
@@ -13,6 +13,7 @@
 #define VFW_E_SAMPLE_REJECTED           0x8004022B
 
 #include <sys/types.h>
+#include <stdlib.h>
 #include <inttypes.h>
 
 #ifndef NOAVIFILE_HEADERS


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)

--
Regards,
 pl



More information about the MPlayer-dev-eng mailing list