[Mplayer-users] gcc 3.0

Stan Jefferson sundodger666 at yahoo.com
Sat Jun 9 13:22:40 CEST 2001


I am using RH 7.1.

Silly me, I installed a snapshot of gcc 3.0.

I compiled kernel 2.4.2 and it seems to work fine,
although the compiler complained a lot.

The DRI modules also compiled and work properly.

However, mplayer won't compile due to ambiguous calls.
 Here is an example of an error message:

make -C loader/DirectShow
make[1]: Entering directory
`/root/main/loader/DirectShow'
gcc -c -O4 -march=athlon -mcpu=athlon -pipe
-ffast-math -fomit-frame-pointer -I. -I.. -I../wine -o
DS_AudioDec.o DS_AudioDec.cpp
In file included from DS_AudioDec.cpp:40:
BitmapInfo.h: In constructor
`BitmapInfo::BitmapInfo(int, int, int)':
BitmapInfo.h:16: call of overloaded
`memset(BitmapInfo* const, int, unsigned int)'
is ambiguous
/usr/include/string.h:55: candidates are:
void* memset(void*, int, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:194:
void* std::memset(void*, int, unsigned int)
BitmapInfo.h: In constructor
`BitmapInfo::BitmapInfo(const BITMAPINFOHEADER&)':
BitmapInfo.h:40: call of overloaded
`memcpy(BitmapInfo* const, const BITMAPINFOHEADER*,
const long int&)' is ambiguous
/usr/include/string.h:38: candidates are:
void* memcpy(void*, const void*, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:98:
void* std::memcpy(void*, const void*, unsigned int)
BitmapInfo.h: In copy constructor
`BitmapInfo::BitmapInfo(const BitmapInfo&)':
BitmapInfo.h:46: call of overloaded
`memcpy(BitmapInfo* const, const BitmapInfo*, const
long int&)' is ambiguous
/usr/include/string.h:38: candidates are:
void* memcpy(void*, const void*, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:98:
void* std::memcpy(void*, const void*, unsigned int)
BitmapInfo.h: In constructor
`BitmapInfo::BitmapInfo(const BitmapInfo*)':
BitmapInfo.h:53: call of overloaded
`memcpy(BitmapInfo* const, const BitmapInfo*&, const
long int&)' is ambiguous
/usr/include/string.h:38: candidates are:
void* memcpy(void*, const void*, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:98:
void* std::memcpy(void*, const void*, unsigned int)
DS_AudioDec.cpp: In function `int
DS_AudioDecoder_Open(char*, GUID*, WAVEFORMATEX*)':
DS_AudioDec.cpp:73: call of overloaded `memcpy(char*&,
WAVEFORMATEX*&, int)' is ambiguous
/usr/include/string.h:38: candidates are:
void* memcpy(void*, const void*, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:98:
void* std::memcpy(void*, const void*, unsigned int)
DS_AudioDec.cpp:75: call of overloaded `memcpy(char*&,
char*&, int)' is ambiguous
/usr/include/string.h:38: candidates are:
void* memcpy(void*, const void*, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:98:
void* std::memcpy(void*, const void*, unsigned int)
DS_AudioDec.cpp:83: call of overloaded
`memset(AM_MEDIA_TYPE*, int, unsigned int)'
is ambiguous
/usr/include/string.h:55: candidates are:
void* memset(void*, int, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:194:
void* std::memset(void*, int, unsigned int)
DS_AudioDec.cpp:95: call of overloaded
`memset(AM_MEDIA_TYPE*, int, unsigned int)'
is ambiguous
/usr/include/string.h:55: candidates are:
void* memset(void*, int, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:194:
void* std::memset(void*, int, unsigned int)
DS_AudioDec.cpp: In function `int
DS_AudioDecoder_Convert(unsigned char*,
   unsigned int, unsigned char*, unsigned int,
unsigned int*, unsigned int*)':
DS_AudioDec.cpp:170: call of overloaded
`memcpy(char*&, unsigned char*, short int&)'
is ambiguous
/usr/include/string.h:38: candidates are:
void* memcpy(void*, const void*, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:98:
void* std::memcpy(void*, const void*, unsigned int)
DS_AudioDec.cpp:181: call of overloaded
`memcpy(unsigned char*, char*&, long int&)'
is ambiguous
/usr/include/string.h:38: candidates are:
void* memcpy(void*, const void*, unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:98:
void* std::memcpy(void*, const void*, unsigned int)
make[1]: *** [DS_AudioDec.o] Error 1
make[1]: Leaving directory
`/root/main/loader/DirectShow'
make: *** [loader/DirectShow/libDS_Filter.a] Error 2

Is there a simple way to solve this problem, or do all
the ambiguous calls have to be rewritten?

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list