gmp refuses to build c++ headers

Torbjörn Granlund tg at
Tue Aug 4 20:33:35 UTC 2020

John Perry <John.Perry at> writes:

  When trying to compile gmp with c++ headers, I get the following output:

     libtool: link: ranlib .libs/libgmpxx.a
  file: .libs/libgmpxx.a(dummy.o) has no symbols
     libtool: link: ( cd ".libs" && rm -f "" && ln -s "../" "” )
     make[2]: *** No rule to make target `gmpxx.h', needed by `all-am'.  Stop.
     make[1]: *** [all-recursive] Error 1
     make: *** [all] Error 2

  I configured using this command:

     ./configure CC=clang CXX=clang++ --enable-cxx

  What am I doing wrong?

You leave much of what you do for us to guess.  You might get help if
you spell out what you do, the GMP version, your platform, etc.

Please encrypt, key id 0xC8601622

More information about the gmp-discuss mailing list