macOS (M1 processor)
- Install Xcode from Mac App Store
- Download "exflib-x64-bin-20201016.tar.bz2".
- Open "Terminal" in macOS Application/Utility.
$ 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
- Download "msys2-x86_64-20230127.exe" from https://www.msys2.org
- Installer (UCRT64 environment) will launch.
$ pacman -Syuu
$ pacman -Sy mingw-w64-i686-toolchain
- Answer "Install all" and "yes".
Compile and execute sample programs with exflib
- Launch "MSYS2 MINGW32" from Windows menu.
- Type "explorer.exe ." (Note: A white space is needed between "exe" and the termination period.)
- Copy "exflib-win32-dll-20180620.zip" to the folder and unzip it.
- Return to "MSYS2 MINGW32" window, and type followings.
$ 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