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 failed with deprecated interator in C++ 17 #927

Open
Bambooin opened this issue Dec 17, 2024 · 0 comments
Open

Build failed with deprecated interator in C++ 17 #927

Bambooin opened this issue Dec 17, 2024 · 0 comments

Comments

@Bambooin
Copy link

Build failed with Android NDK 27.2.12479018 in Trime(https://github.com/osfans/trime)

Clang version

/redacted/tool/android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --version
Android (12470979, +pgo, +bolt, +lto, +mlgo, based on r522817c) clang version 18.0.3 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)

Error

Files/rime-static.dir/rime/gear/simplifier.cc.o -c /redacted/github/trime/app/src/main/jni/librime/src/rime/gear/simplifier.cc
  In file included from /redacted/github/trime/app/src/main/jni/librime/src/rime/gear/simplifier.cc:24:
  In file included from /redacted/github/trime/app/.cxx/RelWithDebInfo/6h3i62g1/arm64-v8a/include/opencc/Dict.hpp:22:
  In file included from /redacted/github/trime/app/.cxx/RelWithDebInfo/6h3i62g1/arm64-v8a/include/opencc/DictEntry.hpp:22:
  /redacted/github/trime/app/.cxx/RelWithDebInfo/6h3i62g1/arm64-v8a/include/opencc/Segments.hpp:56:32: error: 'iterator<std::input_iterator_tag, const char *>' is deprecated [-Werror,-Wdeprecated-declarations]
     56 |   class iterator : public std::iterator<std::input_iterator_tag, const char*> {
        |                                ^
  /redacted/tool/android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__iterator/iterator.h:23:29: note: 'iterator<std::input_iterator_tag, const char *>' has been explicitly marked deprecated here
     23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator {
        |                             ^
  /redacted/tool/android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__config:942:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
    942 | #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
        |                                         ^
  /redacted/tool/android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__config:915:49: note: expanded from macro '_LIBCPP_DEPRECATED'
    915 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
        |                                                 ^
  1 error generated.
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