Subject: | Won't compile on Win32 (with MinGW compiler) |
During the 'make' stage, I can't get past the following:
------------------------------------
gcc -c -IC:/_32/msys/1.0/local/include -s -O2 -DWIN32 -
DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-
strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.56\" -
DXS_VERSION=\"0.56\" "-IC:\perl510_M\5.10.0\lib\CORE" -DHAVE_GL -
DHAVE_GLU -DHAVE_GLUT OpenGL.c
OpenGL.xs: In function `XS_OpenGL_glBlendEquationEXT':
OpenGL.xs:8055: error: `glBlendEquationEXT' undeclared (first use in
this function)
OpenGL.xs:8055: error: (Each undeclared identifier is reported only once
OpenGL.xs:8055: error: for each function it appears in.)
OpenGL.xs: In function `XS_OpenGL_glBlendColorEXT':
OpenGL.xs:8071: error: `glBlendColorEXT' undeclared (first use in this
function)
.
.
[and similar errors for a number of other identifiers]
------------------------------------
For some context, some relevant lines from OpenGL.xs:
------------------------------------
8051: void
8052: glBlendEquationEXT(mode)
8053: GLenum mode
8054: INIT:
8055: loadProc(glBlendEquationEXT,"glBlendEquationEXT");
8056: CODE:
8057: glBlendEquationEXT(mode);
8058:
8059: #endif
------------------------------------
This is MinGW-built perl-5.10.0 on Windows Vista, OpenGL-0.56, building
against the glut-3.7.6 binaries available from
http://www.xmission.com/~nate/glut.html .
Only siginificant change I've made to the Makefile.PL is to remove
the 'OPTIMIZE' key/value pair from WriteMakefile(). Otherwise I get:
------------------------------------
gcc: /O2gity: No such file or directory
gcc: /GDs: No such file or directory
------------------------------------
followed by the errors mentioned at the start of this report.
Any assistance appreciated.
Cheers,
Rob