On Wed, Dec 07, 2016 at 11:04:37AM +0100, Stephan Bergmann wrote:
> On 12/06/2016 04:16 PM, Jakub Jelinek wrote:
> >On Tue, Dec 06, 2016 at 02:51:14PM -0000, Jeremy Newton wrote:
> >>Anyone have any idea what causes these errors? Trying to update a package 
> >>and it failed during a local test build in mock (f25):
> >>
> >>In file included from /usr/include/c++/6.2.1/stdlib.h:36:0,
> >>                 from expr.ypp:5:
> >>/usr/include/c++/6.2.1/cstdlib:124:11: error: '::div_t' has not been 
> >>declared
> >
> >See https://gcc.gnu.org/gcc-6/porting_to.html
> >Header <stdlib.h> changes
> >part.  Most likely the package is doing something wrong.
> 
> I ran into an error like that the other day when some #include (that
> indirectly then #include'd <cstdlib>) was wrapped in a namespace { ... }.

Don't do that, that is invalid in C++.

        Jakub
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to