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

Author Topic: Trouble with sf::Keyboard::isKeyPressed()  (Read 2579 times)

0 Members and 1 Guest are viewing this topic.

tofiffe

  • Newbie
  • *
  • Posts: 8
    • View Profile
Trouble with sf::Keyboard::isKeyPressed()
« on: May 05, 2013, 02:59:03 pm »
I have tried many things, but no matter what I do my compiler crashes when I use the function.
I'm using Code::Blocks with MinGW, GCC 4.7 on Windows 8.

When I put the function in comments the whole program starts working, but no matter what button I want to check for the process "ld.exe" stops working.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Trouble with sf::Keyboard::isKeyPressed()
« Reply #1 on: May 05, 2013, 03:37:32 pm »
Have you tried reinstalling Code::Blocks/MinGW. This sounds like a badly installed compiler.

Also what exact version of SFML did you grab and what version does your compiler have?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

tofiffe

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Trouble with sf::Keyboard::isKeyPressed()
« Reply #2 on: May 05, 2013, 03:48:13 pm »
I don't think it's the compilers fault, since everything but this works. Version is TDM MinGW 32 bit, GCC 4.7

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Trouble with sf::Keyboard::isKeyPressed()
« Reply #3 on: May 05, 2013, 03:50:42 pm »
I don't think it's the compilers fault, since everything but this works.
Well when the linker crashes, then there's somewhere something wrong. And since the linker shouldn't crash because of some bad input and I know SFML works, I asssume it must be something wrong with the compiler. ;)

Version is TDM MinGW 32 bit, GCC 4.7
And you got "GCC 4.7 TDM (SJLJ) - 32 bits", right?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

tofiffe

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Trouble with sf::Keyboard::isKeyPressed()
« Reply #4 on: May 05, 2013, 04:41:38 pm »
yes that is correct.