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

Author Topic: Apparently random error in Config.hpp  (Read 1057 times)

0 Members and 1 Guest are viewing this topic.

scelerato

  • Newbie
  • *
  • Posts: 1
    • View Profile
Apparently random error in Config.hpp
« on: August 21, 2022, 11:27:47 am »
Hi there, I've been using SFML for quite a while now, but today apparently from nowhere i recivedshat seemed to be a totally random compiling error and I don't understand the reason

EDIT:Since the  error message is really long I'll just attach a txt with it, anyway they where all errors consequential from the first one.

So basically I compile with
(click to show/hide)

It totally didn't made sense to me, since other SFML projects I've worked on using the same library(which are installed globally in my computer ) still complie and run while still using SFML windows.

Still, I wanted to keep work on my project, so I went in config.hpp and on line 206 i changed the line from
namespace sf
to
;namespace sf
and it started work back, which totally makes no sense to me.
Let me know if it's something known and if my solution is ok or will create new problems for me in the future.
« Last Edit: August 21, 2022, 11:37:28 am by scelerato »

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Apparently random error in Config.hpp
« Reply #1 on: August 21, 2022, 05:55:45 pm »
From the error I am guessing you have, just before the include:
1. a class with no ; after the closing } (but that'd be a different error in modern GCC),
2. something like 'const int x = 10' without a semicolon after it (that gives that error message exactly).
Back to C++ gamedev with SFML in May 2023

 

anything