Comment on Help with getting SFML for C++ set up for a project?
e0qdk@reddthat.com 1 week ago
while ( const std::optional event = window.pollEvent() )
Try passing -std=c++23 to g++ – that code doesn’t look like valid C++ from when I was regularly programming in C++, but the standards committee has fucked around with the language a lot in the last few years and I suspect this is something from one of the very recent standards.
ComicalMayhem@lemmy.world 1 week ago
Hey, thanks, I tried it but it didn’t work. Ended up figuring out I had to build the project from the build folder with
make .which i wasn’t aware of.