[MPlayer-cvslog] r35982 - in trunk/libvo: gl_common.c gl_common.h gl_compat.h matrixview.c vo_gl.c

Josh joshf87 at live.com
Sat Mar 16 19:51:28 CET 2013


ClearDepthf doesn't seem to be part of gl.h at least on mingw 
(mingw-w64) but it's in glext.h which isn't included in the toolchain by 
default. I used the following workaround in gl_common.h:

#define GL_GLEXT_PROTOTYPES
#include "gl/glext.h"


/mingw/bin/i686-w64-mingw32-gcc.exe -MD -MP -Wall -Wno-switch 
-Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes 
-Wmissing-prototypes -Wdisa
bled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99 -Werror-implicit-function-declaration -O4 -march=i486 
-mtune=generic -pipe -ffast-m
ath -fomit-frame-pointer -fno-tree-vectorize -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 
-D__USE_MINGW_ANSI_STDIO=1 -I. -Iffm
peg -I/mingw/src/live -fno-common  -I/mingw/include/ 
-I/mingw/include/freetype2 -I/mingw/include 
-IE:/Buildsys/MinGW/include/opus   -IE:/Buildsys/MinGW/include
    -c -o libvo/gl_common.o libvo/gl_common.c
libvo/gl_common.c:434:1: error: 'glClearDepthf' undeclared here (not in 
a function)
make: *** [libvo/gl_common.o] Error 1


More information about the MPlayer-cvslog mailing list