-
Notifications
You must be signed in to change notification settings - Fork 44
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
Graphite Fails to Compile in recent Electronite version 20 - std::iterator deprecated #76
Comments
I was able to update GlyphCache.cpp, and graphite now compiles in Electron v20. Here is a patch:
|
I was getting this error when compiling Graphite2 in FieldWorks with more recent Linux libraries / gcc. Thanks @PhotoNomad0 ! |
Your example gives me more confidence about implementing what I saw at https://www.fluentcpp.com/2018/05/08/std-iterator-deprecated/ . |
Glad it helped you! |
Electronite is a fork of Electron that adds Graphite support. And starting with Electron v20.3.3 (https://github.com/unfoldingWord/electronite/tree/electronite-v20.3.3-beta), graphite fails to compile in the Electron Build environment. I am getting similar build errors in Windows, MacOS, and LInux that are related to the use of
std::iterator
.In building for Windows, I get the error:
And in building for Linux, I get the error:
And in building for MacOS, the error message is similar to Linux.
It appears that starting in Electron v20, the build environment has changed so that this has been escalated from a build warning to an error.
I found this posting that explains the change in implementation of
std::iterator
: https://stackoverflow.com/questions/43268146/why-is-stditerator-deprecatedThe text was updated successfully, but these errors were encountered: