#8783: frobby optional spkg doesn't build with newer GCC's
---------------------------------+------------------------------------------
Reporter: was | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.4.1
Component: optional packages | Keywords:
Author: | Upstream: Fixed upstream, in a later
stable release.
Reviewer: | Merged:
Work_issues: |
---------------------------------+------------------------------------------
Comment(by was):
{{{
The error in the ticket mentions srand. What I do is google srand and I
get e.g.
http://www.cplusplus.com/reference/clibrary/cstdlib/srand/
it says it is in cstdlib, so add
#include <cstdlib>
to the cpp file that is having a problem. Then likely another file
will have the same problem due to the same or another missing header,
and after a few iterations of this the problem should be solved. Most
likely all the missing includes are in cpp files, though it is
possible that a header might miss something too. The problem is caused
by older versions of GCC having header A also pull in header B without
the standard saying that it should do so (which is allowed but
unfortunate). The newer version of header A in a newer GCC then stops
pulling in header B, and suddenly it becomes apparent that header B
should have been included where A was also included, but before it was
invisible that this should have happened.
Cheers
Bjarke
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8783#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.