undefined symbol when building on Haiku and Arch Linux

Issue #998 resolved
Chris Roberts created an issue

Recently the cmake CXX_STANDARD variable was set to use C++11 but It seems C++17 is needed in order to inline certain things. When building I receive the error:

/usr/bin/ld: CMakeFiles/speedcrunch.dir/gui/syntaxhighlighter.cpp.o: in function ColorScheme::loadByName(QString const&)': syntaxhighlighter.cpp:(.text+0x16e2): undefined reference to ColorScheme::m_colorSchemeExtension'
collect2: error: ld returned 1 exit status

The build is successful when setting the variable to 17 but I’m not sure if there is some other way you’d like to handle it. In src/CMakeLists.txt:

set_property(TARGET ${APPLICATION_NAME} PROPERTY CXX_STANDARD 17)

Comments (2)

  1. Chris Roberts reporter

    I no longer have any problem when building under Linux or Haiku. I’m not sure which commit fixed it. So, I guess this issue can be closed?

  2. Log in to comment