[Mplayer-users] .cpp compiling errors - solution

Arpi arpi at thot.banki.hu
Tue Apr 24 20:57:44 CEST 2001

I hope this help you! Please tell me the results!

--------- Forwarded message ---------
From: Zdenek Kabelac <kabi at informatics.muni.cz>
To: Arpi <arpi at thot.banki.hu>
Subject: Re: C++ help needed...

On Tue, Apr 24, 2001 at 12:45:15PM +0200, Arpi wrote:
> make -C loader/DirectShow
> make[1]: Entering directory
> `/home/leonard/download/mplayer/main/loader/DirectShow'
> gcc -c -O4 -march=pentium -mcpu=pentium -pipe -ffast-math -I. -I.. -I../wine
> -o DS_AudioDec.o DS_AudioDec.cpp
> /usr/include/g++-2/streambuf.h: In method `struct streampos
> streambuf::pubseekoff(streamoff, enum _seek_dir, int = 3)':
> In file included from /usr/include/g++-2/iostream.h:31,
>                  from /usr/include/g++-2/iostream:6,
>                  from except.h:10,
>                  from DS_AudioDec.cpp:14:
> /usr/include/g++-2/streambuf.h:362: conversion from `__off64_t' to
> non-scalar type `streampos' requested
> /usr/include/g++-2/streambuf.h: In method `struct streampos
> streambuf::pubseekpos(struct streampos, int = 3)':
> /usr/include/g++-2/streambuf.h:364: `struct streampos' used where a
> `__off64_t' was expected
> make[1]: *** [DS_AudioDec.o] Error 1
> make[1]: Leaving directory
> `/home/leonard/download/mplayer/main/loader/DirectShow'
> make: *** [loader/DirectShow/libDS_Filter.a] Error 2
> This error might be because of the f***ed up system I have, but I don't know
> where to start looking.
> Any ideas for me, or am I stuck with "MPlayer 0.11pre10" forever :-(

First I've thought I'll have to ask you for this file - but now
I think I see the problem - you are using some really obsolete C++ stdc header
files (aren't you still using gcc272 ??? 0 then I would understand why
you hate C++ - it was really unusable with this compiler).

I would suggest to upgrade to gcc 2.95.3 (I'm just warning you that
RedHat lately releases completely broken compilers like 2.96.XX - they
are compiling some files several times longer for some stupid optimalization

Those header files you need are packaged in libstdc++2.10-dev
on latest Debian unstable - located in /usr/include/g++-3
(and avifile is now most of the time compatible with gcc3.0 - with
libstdc++3.0-dev too)


             When All Else Fails!    Lower your Standards
  Zdenek Kabelac  http://i.am/kabi/ kabi at i.am {debian.org; fi.muni.cz}

Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net

More information about the MPlayer-users mailing list