upgrade to ubuntu 12.04 breaks compiling

Marc Glisse marc.glisse at inria.fr
Mon Sep 10 18:36:07 CEST 2012


On Mon, 10 Sep 2012, A. Grigoryants wrote:

> the code was compiled OK on Ubuntu 10.04 64-bit
> when upgrading to 12.04 64-bit the error occurs :
>
>
> In function `std::basic_istream<char, std::char_traits<char> >& 
> operator>><__mpz_struct [1]>(std::basic_istream<char, std::char_traits<char> 
>> &, __gmp_expr<__mpz_struct [1], __mpz_struct [1]>&)':
> /usr/include/gmpxx.h:2100: undefined reference to 
> `operator>>(std::basic_istream<char, std::char_traits<char> >&, 
> __mpz_struct*)'
>
> any direction to search, please .......

Well, if you want help with code that fails to compile, it helps to show 
the code, and the command you use to compile. Crystal ball says you are 
missing -lgmpxx, but then it shouldn't have worked before either.

-- 
Marc Glisse


More information about the gmp-discuss mailing list