gmp refuses to build c++ headers

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


John Perry <John.Perry at usm.edu> writes:

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

     libtool: link: ranlib .libs/libgmpxx.a
     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
  file: .libs/libgmpxx.a(dummy.o) has no symbols
     libtool: link: ( cd ".libs" && rm -f "libgmpxx.la" && ln -s "../libgmpxx.la" "libgmpxx.la” )
     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.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list