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

Author Topic: [SOLVED]compile error  (Read 2828 times)

0 Members and 1 Guest are viewing this topic.

Soul

  • Newbie
  • *
  • Posts: 44
    • View Profile
[SOLVED]compile error
« on: February 28, 2013, 05:08:49 pm »
windows xp pro, gnu gcc 4.7.2.1

Quote
..\CodeBlocks\MinGW\SFML2\include/SFML/Config.hpp:152:9: error: ISO C++ 1998 does not support 'long long' [-Wlong-long]
..\CodeBlocks\MinGW\SFML2\include/SFML/Config.hpp:153:9: error: ISO C++ 1998 does not support 'long long' [-Wlong-long]
« Last Edit: March 01, 2013, 03:10:57 pm by Soul »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: compile error
« Reply #1 on: February 28, 2013, 05:19:13 pm »
I guess your ISP charges you for each word... :-\
Or even letter!?  :o

Set the -std=c++11 compiler flag and you should be fine.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Soul

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: compile error
« Reply #2 on: February 28, 2013, 05:28:24 pm »
i did it earlier and it don't help :P i dunno what's wrong...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: compile error
« Reply #3 on: February 28, 2013, 08:02:19 pm »
What compiler flags do you use?

And indeed, long long is not part of the C++98 standard, so you should use something else if you want your code to be portable.
Laurent Gomila - SFML developer

Soul

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: compile error
« Reply #4 on: February 28, 2013, 08:30:14 pm »
ya, i saw this, problem solved :P my bad :<