J'utilise comme compilateur gcc 4.7.2 64 bits pour Windows 8 64 bits.
Y aurait-il une incompatibilité ?
J'ai cherché un peu, et sur un autre sujet la version dynamique avait semble-t-il résolu le problème, sauf que voilà ce qu'il m'arrive quand je veux compiler les versions dynamiques :
Je compile en lançant "
mingw32-make install".
EDIT: Apparemment ça viendrait bien de la version 64bit de gcc, je tente avec une version 32bits.
Bon, après installation d'un gcc 4.7.2 32bits, je recompile SFML en mode Release statique et me voici avec d'autres erreurs :
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x620): undefined reference to `glReadPixels@28'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x53): undefined reference to `glDisable@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x62): undefined reference to `glDisable@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x71): undefined reference to `glDisable@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x80): undefined reference to `glDisable@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x8f): undefined reference to `glEnable@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x9e): undefined reference to `glEnable@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xad): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xbc): undefined reference to `glEnableClientState@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xcb): undefined reference to `glEnableClientState@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xda): undefined reference to `glEnableClientState@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x135): undefined reference to `glLoadMatrixf@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x14c): undefined reference to `glBindTexture@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x1a5): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x2a1): undefined reference to `glClearColor@16'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x791): undefined reference to `glPushClientAttrib@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x7a0): undefined reference to `glPushAttrib@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x7af): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x7b7): undefined reference to `glPushMatrix@0'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x7c3): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x7cb): undefined reference to `glPushMatrix@0'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x7d7): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x7df): undefined reference to `glPushMatrix@0'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x838): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x840): undefined reference to `glPopMatrix@0'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x84c): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x854): undefined reference to `glPopMatrix@0'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x860): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x868): undefined reference to `glPopMatrix@0'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x86d): undefined reference to `glPopClientAttrib@0'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xa84): undefined reference to `glViewport@16'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xa93): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xaac): undefined reference to `glLoadMatrixf@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xabb): undefined reference to `glMatrixMode@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xcbc): undefined reference to `glVertexPointer@16'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xce6): undefined reference to `glColorPointer@16'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xd10): undefined reference to `glTexCoordPointer@16'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xd36): undefined reference to `glDrawArrays@12'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xda0): undefined reference to `glLoadMatrixf@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xdd0): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xdee): undefined reference to `glLoadMatrixf@4'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xe10): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xe30): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xe4c): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xe7a): undefined reference to `glBindTexture@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xf00): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xf30): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xf50): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xf70): undefined reference to `glBlendFunc@8'
C:\C++\SFML\lib/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xff6): undefined reference to `glBindTexture@8'
EDIT 2: J'ai recompilé les versions Release dynamique, et c'est bon ça marche !
Je ne sais pas ce qu'il s'est passé avec la version statique cependant ...