Skip to content

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

Description

@dreirund

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions