[MPlayer-dev-eng] fix compilation errors with mingw64

Diego Biurrun diego at biurrun.de
Fri Apr 29 15:06:33 CEST 2011


On Thu, Apr 28, 2011 at 04:06:57PM +0000, Stephen Sheldon wrote:
> Diego Biurrun <diego <at> biurrun.de> writes:
> 
> > 
> > On Tue, Apr 26, 2011 at 09:49:49AM -0700, Stephen Sheldon wrote:
> > > I use mingw64 to compile mplayer in Windows 7 64-bits.  I use the  
> > > mingw64-x86_64 packages on cygwin.  After the recent change to configure  
> > > to add the flag "-Werror-implicit-funtion-declaration" I got 3  
> > > compilation errors.  Attached is a patch to fix them.
> > 
> > Show us the errors please.
> 
> Here is the error for libao2/ao_pcm.c.  The missing definition of _get_osfhandle
> is in io.h.
> 
> x86_64-w64-mingw32-gcc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses
> -Wpointer-arith -Wredundant-decls -Werror-implicit-function-declaration
> -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization
> -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O4 -march=native
> -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -Iffmpeg
> -I/mingw64/include -fno-common -DPIC -I/mingw64/include/freetype2
> -I/mingw64/include -I/mingw64/include   -DFF_API_MAX_STREAMS=0 -c -o
> libao2/ao_pcm.o libao2/ao_pcm.c
> libao2/ao_pcm.c: In function 'uninit':
> libao2/ao_pcm.c:208:9: error: implicit declaration of function '_get_osfhandle'
> libao2/ao_pcm.c:208:35: warning: cast to pointer from integer of different size
> make: *** [libao2/ao_pcm.o] Error 1

OK, I applied the ao_pcm hunk from your patch.

Diego


More information about the MPlayer-dev-eng mailing list