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
g++ -c main.cpp && g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system && ./sfml-app
and I recived for apparently no reason a long compiling error message which started with
In file included from /usr/include/SFML/System.hpp:32,
from /usr/include/SFML/Window.hpp:32,
from gameWindow.cpp:1,
from main.cpp:3:
/usr/include/SFML/Config.hpp:206:1: error: expected ‘,’ or ‘;’ before ‘namespace’
namespace sf
^~~~~~~~~
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.