gnucash won't build

John Ralls jralls at ceridwen.us
Thu Oct 9 15:44:19 EDT 2014


On Oct 9, 2014, at 12:29 PM, Christian Stimming <christian at cstimming.de> wrote:

> Am Donnerstag, 9. Oktober 2014, 09:47:50 schrieb John Ralls:
>> 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.
> 
> Yes, this fixes it.

Thanks, pushed.

Regards,
John Ralls




More information about the gnucash-devel mailing list