SFML community forums

Help => General => Topic started by: scelerato on August 21, 2022, 11:27:47 am

Title: Apparently random error in Config.hpp
Post by: scelerato 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.
Title: Re: Apparently random error in Config.hpp
Post by: FRex 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).