gnucash won't build

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

gnucash won't build

Alex Aycinena-2
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?

Thanks,

Alex
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: gnucash won't build

John Ralls-2

On Oct 9, 2014, at 8:49 AM, Alex Aycinena <[hidden email]> 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

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: gnucash won't build

Christian Stimming-4
Am Donnerstag, 9. Oktober 2014, 09:47:50 schrieb John Ralls:

> On Oct 9, 2014, at 8:49 AM, Alex Aycinena <[hidden email]> 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
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: gnucash won't build

John Ralls-2

On Oct 9, 2014, at 12:29 PM, Christian Stimming <[hidden email]> wrote:

> Am Donnerstag, 9. Oktober 2014, 09:47:50 schrieb John Ralls:
>> On Oct 9, 2014, at 8:49 AM, Alex Aycinena <[hidden email]> 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


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: gnucash won't build

Alex Aycinena-2
Works for me as well on Fedora 20 and 19.

Alex

On Thu, Oct 9, 2014 at 12:44 PM, John Ralls <[hidden email]> wrote:

>
> On Oct 9, 2014, at 12:29 PM, Christian Stimming <[hidden email]>
> wrote:
>
> > Am Donnerstag, 9. Oktober 2014, 09:47:50 schrieb John Ralls:
> >> On Oct 9, 2014, at 8:49 AM, Alex Aycinena <[hidden email]>
> 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
>
>
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel