Am Donnerstag, 9. Oktober 2014, 09:47:50 schrieb John Ralls: > On Oct 9, 2014, at 8:49 AM, Alex Aycinena <alex.aycin...@gmail.com> wrote: > > When I try to build gnucash, I get: > > > > /home/gnucash-dev/gitcheckouts/gnucash/src/libqof/qof/kvp-value.cpp: In > > member function 'int compare_visitor::operator()(T&, U&) const': > > /home/gnucash-dev/gitcheckouts/gnucash/src/libqof/qof/kvp-value.cpp:219:15 > > : > > error: 'invalid_argument' is not a member of 'std' > > > > throw std::invalid_argument{"You may not compare objects of > > > > different type."}; > > > > ^ > > > > /home/gnucash-dev/gitcheckouts/gnucash/src/libqof/qof/kvp-value.cpp:219:36 > > : > > error: expected ';' before '{' token > > > > throw std::invalid_argument{"You may not compare objects of > > > > different type."}; > > > > ^ > > > > /home/gnucash-dev/gitcheckouts/gnucash/src/libqof/qof/kvp-value.cpp:220:5: > > error: no return statement in function returning non-void > > [-Werror=return-type] > > > > } > > ^ > > > > At global scope: > > cc1plus: error: unrecognized command line option > > "-Wno-deprecated-register" > > [-Werror] > > cc1plus: all warnings being treated as errors > > make[5]: *** [kvp-value.lo] Error 1 > > make[5]: Leaving directory > > `/home/gnucash-dev/gitcheckouts/gnucash-build/src/libqof/qof' > > > > Can someone give me some advice? > > See if adding > > #include <stdexcept> > > to kvp-value.cpp fixes the error.
Yes, this fixes it. Regards, Christian _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel