Menu

How to compile

Bits of cotton

How to compile konbu.cc

  1. We need Eigen library installed.
  2. If you want to get more accurate region, we should use gmp, mpfr and real.hpp library installed.
  3. Compile with g++, options are:
    • -DACC_FLOAT : use maximum accuracy float, suitable for tiny problems.
    • -DACC_DDOUBLE : use maximum accuracy double, may works with stable problems.
    • -DACC_LLDOUBLE : use maximum accuracy long double, may works with stable problems.
    • -DACC_GMP -DBITS=64 : use maximum accuracy 64bit mpfr library, may works with stable problems.
    • -DACC_GMP -DBITS=256 : use maximum accuracy 256bit mpfr library, may works.
  4. Link with some linkers, if you need, please link stdc++, gmp, mpfr.

Problems:

  • Some g++ environment needs to compile with -fno-inline to avoid stdc++ link error.
  • In Mac OS X, we need to compile gmp and mpfr first. And we need to get Eigen library.

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.