From e422b4160038a685ebcbf1496b84f3d5202338d5 Mon Sep 17 00:00:00 2001 From: thdox Date: Sun, 11 May 2014 11:14:49 +0200 Subject: Library GMP is not yet ready for GCC 4.9, as described at bottom of page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://gcc.gnu.org/gcc-4.9/porting_to.html See extract below: The header was updated for C++11 support and this breaks some libraries which misuse macros meant for internal use by GCC only. For instance with GMP versions up to 5.1.3, you may see: /usr/include/c++/4.9.0/cstddef:51:11: error: ‘::max_align_t’ has not been declared using ::max_align_t; ^ Another possible error is: someheader.h:99:13: error: ‘ptrdiff_t’ does not name a type A workaround until libraries get updated is to include or before any headers from that library. --- src/system.hh.in | 1 + 1 file changed, 1 insertion(+) (limited to 'src/system.hh.in') diff --git a/src/system.hh.in b/src/system.hh.in index 8f501587..eaee14dc 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -156,6 +156,7 @@ typedef std::ostream::pos_type ostream_pos_type; #include #endif +#include /* needed for gcc 4.9 */ #include #include #include "utf8.h" -- cgit v1.2.3