gnucash won't build
John Ralls
jralls at ceridwen.us
Thu Oct 9 12:47:50 EDT 2014
On Oct 9, 2014, at 8:49 AM, Alex Aycinena <alex.aycinena at 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.
Regards,
John Ralls
More information about the gnucash-devel
mailing list