Hi all,
I have a problem compiling under Windows 7, 64 bit with MinGW32. I used the current source code archive downloaded from the website. I get the same problem if I drop the pre-built GCC 4.9.2 MinGW (DW2) - 32-bit package into the appropriate path. It seems to be a problem with OpenGL, but couldn't find any solutions on the web. Any help would be appreciated
ETA: Problems occur with sfml‑window and sfml‑graphics only.
Commands used to build SFML:
$ mkdir build
$ cd build
$ cmake -G "MSYS Makefiles" ..
$ make sfml‑window
Console output:
<snip>
[ 44%] Built target sfml-system
[ 47%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.
cpp.obj
In file included from C:/tp-dev/SFML-2.3.2/include/SFML/OpenGL.hpp:46:0,
from c:/tp-dev/SFML-2.3.2/src/SFML/Window/GlContext.cpp:33:
c:\mingw\include\gl\gl.h:1587:20: error: expected initializer before 'glAccum'
extern void WINAPI glAccum (GLenum op, GLfloat value);
^
c:\mingw\include\gl\gl.h:1588:20: error: expected initializer before 'glActiveTe
xtureARB'
extern void WINAPI glActiveTextureARB (GLenum texture);
^
c:\mingw\include\gl\gl.h:1589:20: error: expected initializer before 'glAlphaFun
c'
extern void WINAPI glAlphaFunc (GLenum func, GLclampf ref);
^
c:\mingw\include\gl\gl.h:1590:25: error: expected initializer before 'glAreTextu
resResident'
extern GLboolean WINAPI glAreTexturesResident (GLsizei n, const GLuint *texture
s, GLboolean *residences);
^
c:\mingw\include\gl\gl.h:1591:25: error: expected initializer before 'glAreTextu
resResidentEXT'
extern GLboolean WINAPI glAreTexturesResidentEXT (GLsizei n, const GLuint *text
ures, GLboolean *residences);
^
c:\mingw\include\gl\gl.h:1592:20: error: expected initializer before 'glArrayEle
ment'
extern void WINAPI glArrayElement (GLint i);
^
c:\mingw\include\gl\gl.h:1593:20: error: expected initializer before 'glArrayEle
mentEXT'
extern void WINAPI glArrayElementEXT (GLint i);
^
c:\mingw\include\gl\gl.h:1594:20: error: expected initializer before 'glBegin'
extern void WINAPI glBegin (GLenum mode);
^
c:\mingw\include\gl\gl.h:1595:20: error: expected initializer before 'glBindText
ure'
extern void WINAPI glBindTexture (GLenum target, GLuint texture);
^
c:\mingw\include\gl\gl.h:1596:20: error: expected initializer before 'glBitmap'
extern void WINAPI glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfl
oat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
^
In file included from C:/tp-dev/SFML-2.3.2/include/SFML/OpenGL.hpp:46:0,
from c:/tp-dev/SFML-2.3.2/src/SFML/Window/GlContext.cpp:33:
c:\mingw\include\gl\gl.h:1597:20: error: expected initializer before 'glBlendCol
or'
extern void WINAPI glBlendColor (GLclampf red, GLclampf green, GLclampf blue, G
Lclampf alpha);
^
c:\mingw\include\gl\gl.h:1598:20: error: expected initializer before 'glBlendEqu
ation'
extern void WINAPI glBlendEquation (GLenum mode);
^
c:\mingw\include\gl\gl.h:1599:20: error: expected initializer before 'glBlendFun
c'
extern void WINAPI glBlendFunc (GLenum sfactor, GLenum dfactor);
^
c:\mingw\include\gl\gl.h:1600:20: error: expected initializer before 'glCallList
'
extern void WINAPI glCallList (GLuint list);
^
c:\mingw\include\gl\gl.h:1601:20: error: expected initializer before 'glCallList
s'
extern void WINAPI glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
^
c:\mingw\include\gl\gl.h:1602:20: error: expected initializer before 'glClear'
extern void WINAPI glClear (GLbitfield mask);
^
c:\mingw\include\gl\gl.h:1603:20: error: expected initializer before 'glClearAcc
um'
extern void WINAPI glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfl
oat alpha);
^
c:\mingw\include\gl\gl.h:1604:20: error: expected initializer before 'glClearCol
or'
extern void WINAPI glClearColor (GLclampf red, GLclampf green, GLclampf blue, G
Lclampf alpha);
^
c:\mingw\include\gl\gl.h:1605:20: error: expected initializer before 'glClearDep
th'
extern void WINAPI glClearDepth (GLclampd depth);
^
c:\mingw\include\gl\gl.h:1606:20: error: expected initializer before 'glClearInd
ex'
extern void WINAPI glClearIndex (GLfloat c);
^
c:\mingw\include\gl\gl.h:1607:20: error: expected initializer before 'glClearSte
ncil'
extern void WINAPI glClearStencil (GLint s);
^
c:\mingw\include\gl\gl.h:1608:20: error: expected initializer before 'glClientAc
tiveTextureARB'
extern void WINAPI glClientActiveTextureARB (GLenum texture);
^
c:\mingw\include\gl\gl.h:1609:20: error: expected initializer before 'glClipPlan
e'
extern void WINAPI glClipPlane (GLenum plane, const GLdouble *equation);
^
c:\mingw\include\gl\gl.h:1610:20: error: expected initializer before 'glColor3b'
extern void WINAPI glColor3b (GLbyte red, GLbyte green, GLbyte blue);
^
c:\mingw\include\gl\gl.h:1611:20: error: expected initializer before 'glColor3bv
'
extern void WINAPI glColormake[3]: *** [src/SFML/Window/CMakeFiles/sfml-window.
dir/GlContext.cpp.obj] Error 3
<snip>