Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with fe_util.hpp:283:19: error: ‘sf’ was not declared in this scope (GCC 14.2). #762

Open
dreirund opened this issue Feb 24, 2025 · 0 comments

Comments

@dreirund
Copy link

Ahoj,

I am trying to build this (latest git checkout (commit 2b5787e)) on Artix GNU/Linux (rolling release), according to this recipe.

GCC version: 14.2.1

Build fails with fe_util.hpp:283:19: error: ‘sf’ was not declared in this scope:

flags: -std=c++11  -Wl,--export-dynamic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -DDATA_PATH=\"/usr/share/attract/\" -O2 -DNDEBUG -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/AL -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/nowide -Iextlibs/nvapi -Iextlibs/rapidjson/include -Iextlibs/gameswf -DUSE_XLIB -DUSE_XINERAMA -DUSE_FONTCONFIG -DUSE_LIBARCHIVE -DUSE_LIBCURL
mkdir -p obj
Compiling obj/fe_base.o...
In file included from src/fe_base.cpp:24:
src/fe_util.hpp:283:19: error: ‘sf’ was not declared in this scope
  283 | std::basic_string<sf::Uint32> clipboard_get_content();
      |                   ^~
src/fe_util.hpp:283:29: error: template argument 1 is invalid
  283 | std::basic_string<sf::Uint32> clipboard_get_content();
      |                             ^
src/fe_util.hpp:283:29: error: template argument 2 is invalid
src/fe_util.hpp:283:29: error: template argument 3 is invalid
make: *** [Makefile:507: obj/fe_base.o] Error 1

Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant