Compile error with GCC 4.9

Jaak Ristioja jaak.ristioja at cyber.ee
Fri May 2 15:25:28 UTC 2014


On 02.05.2014 18:20, leif wrote:
> On 02.05.2014 16:28, Jaak Ristioja wrote:
>> Hello!
>>
>> In file included from /home/user/prefix/include/gmp.h:51:0,
>>                   from /home/user/prefix/include/gmpxx.h:33,
>>                   from /home/user/test.cpp:1:
>> /home/user/prefix/include/c++/4.9.0/cstddef:51:11: error:
>> '::max_align_t' has not been declared
>>     using ::max_align_t;
>>
>> Even http://gcc.gnu.org/gcc-4.9/porting_to.html bashes GMP for this.
> 
> "For instance with GMP versions up to 5.1.3, you may see ..."
> 
>> Probably related to __need_size_t?
> 
> Works for me with GMP 6.0.0, released March 2014.
> 
> 
> -leif
> 

Yes, sorry - my bad. A build script I wrote accidentally failed to
correctly update the GMP headers in a local installation prefix.

Best regards,
Jaak


More information about the gmp-bugs mailing list