macOS (M1 processor)

  1. Install Xcode from Mac App Store
  2. Download "exflib-x64-bin-20201016.tar.bz2".
  3. Open "Terminal" in macOS Application/Utility.
  4. 
    $ curl -O http://www-an.acs.i.kyoto-u.ac.jp/~fujiwara/exflib/exflib-x64-bin-20201016.tar.bz2
    $ tar jxf exflib-x64-bin-20201016.tar.bz2
    $ cd exflib-x64-bin-20201016/sample-cxx
    $ g++ -target x86_64-apple-macos12 -O2 -I../exflib-x86_64-intelmac fact.cpp ../exflib-x86_64-intelmac/libexfloat.a
    $ ./a.out
    
    
    Note that you need "-target x86_64-apple-macos12" option to g++.



Windows

Install C++ compiler

  1. Download "msys2-x86_64-20230127.exe" from https://www.msys2.org
  2. Installer (UCRT64 environment) will launch.
  3. 
    $ pacman -Syuu
    $ pacman -Sy mingw-w64-i686-toolchain
    
    
  4. Answer "Install all" and "yes".

Compile and execute sample programs with exflib

  1. Launch "MSYS2 MINGW32" from Windows menu.
  2. Type "explorer.exe ." (Note: A white space is needed between "exe" and the termination period.)
  3. Copy "exflib-win32-dll-20180620.zip" to the folder and unzip it.
  4. Return to "MSYS2 MINGW32" window, and type followings.
  5. 
    $ cd exflib-win32-dll-20180620/exflib-win32-dll-20180620/sample-cxx
    ( or "cd exflib-win32-dll-20180620/sample-cxx" )
    $ cp ../exfloat.dll .
    $ g++ -O2 -o fact.exe -I.. fact.cpp exfloat.dll
    $ ./fact
    
    
    Note that you need to copy "exfloat.dll" to the current (sample-cxx) directory.

fujiwara (at) acs.i.kyoto-u.ac.jp