compile errors
John Ralls
jralls at ceridwen.us
Thu Nov 17 20:10:01 EST 2016
> On Nov 17, 2016, at 4:54 PM, Alex Aycinena <alex.aycinena at gmail.com> wrote:
>
> Hi,
>
> I get the following compile errors today:
>
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/sql/gnc-account-sql.cpp:
> In member function ‘virtual void
> GncSqlAccountBackend::load_all(GncSqlBackend*)’:
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/sql/gnc-account-sql.cpp:239:9:
> error: ‘reverse’ is not a member of ‘std’
> std::reverse(l_accounts_needing_parents.begin(),
> ^~~
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/sql/gnc-account-sql.cpp:245:19:
> error: ‘remove_if’ is not a member of ‘std’
> end = std::remove_if(l_accounts_needing_parents.begin(), end,
> ^~~
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/sql/gnc-account-sql.cpp:264:15:
> error: ‘remove_if’ is not a member of ‘std’
> end = std::remove_if(l_accounts_needing_parents.begin(), end,
> ^~~
> At global scope:
> cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’
> [-Werror]
> cc1plus: all warnings being treated as errors
> Makefile:752: recipe for target 'gnc-account-sql.lo' failed
>
> Am I missing a library or something?
Alex,
That didn't take long! ;-)
Only if your compiler doesn't support C++11. More likely your libstdc++ doesn't pull in <Algorithms> when <String> is included.
Travis puked test-backend-dbi-basic.c for a similar complaint, this one for std::for_each. I've just pushed what I hope will fix that and your error.
Regards,
John Ralls
More information about the gnucash-devel
mailing list