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

Author Topic: SFML errors  (Read 2352 times)

0 Members and 1 Guest are viewing this topic.

dzzank

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
SFML errors
« on: May 19, 2014, 07:13:33 pm »
Hello!
I'm having some problems with some SFML code. I'm getting the following errors:
"Failed to activate the window's context" x2
"Failed to initialize GLEW. Missing GL version" x8

Here is the code:
(click to show/hide)

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: SFML errors
« Reply #1 on: May 19, 2014, 08:04:35 pm »
Since it sounds like something's missing from your system, we need more information: What system are you running this on? What compiler? Exactly which SFML binaries? Static/dynamic linking? Did you follow the tutorials?

Also, almost all of those comments are completely redundant and merely make your code harder to read.  Only comment things that aren't already obvious.

And try using an enum instead of that a/b/c thing.
« Last Edit: May 19, 2014, 08:06:50 pm by Ixrec »

dzzank

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: SFML errors
« Reply #2 on: May 19, 2014, 10:03:55 pm »
I'm using Windows 7 Home Premium, compiling wirh MinGW 4.8.1, SFML 2.1, static linking.
It's the first time I'm having this kind of problems though I've been using SFML for about 2 months.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
AW: SFML errors
« Reply #3 on: May 20, 2014, 08:07:06 am »
Try updating or installing your graphics card driver.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything