Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Including GLEW and SFML/Graphics  (Read 1065 times)

0 Members and 1 Guest are viewing this topic.

Dan

  • Newbie
  • *
  • Posts: 1
    • View Profile
Including GLEW and SFML/Graphics
« on: June 08, 2013, 05:37:18 am »
I'm using SFML 2.0 and including GL/glew.h, SFML/Window.hpp, SFML/Graphics.hpp and SFML/OpenGL.hpp and if I omit the SFML/Graphics module everything works fine and I'm able to render OpenGL as expected. However I wanted to use SFML/Graphics to display text strings in the window. This resulted in errors due to the GLEW items in sfml-graphics-s-d.lib already being defined in glew32s.lib. I'm currently linking to both SFML and GLEW using the static libraries and have SFML_STATIC and GLEW_STATIC defined in the preprocessor.

Any advice on this would be greatly appreciated, thanks!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Including GLEW and SFML/Graphics
« Reply #1 on: June 08, 2013, 09:03:07 am »
In this case don't link to GLEW, since it's already done in SFML. But you have to use the same version that SFML uses.
Laurent Gomila - SFML developer

 

anything