We support building resulting C++ code using g++ on Linux and MSVC/g++ on Windows. stdlib for MacOS and FreeBSD isn't tested and isn't finished yet. Building with clang also should work. You need compiler support at least C++11.
If you want to use exceptions on Windows you coudn't use g++, only MSVC.
You should have:
- GMP for working with BigInts
- fmtlib for using template strings (if you compiler doesn't support C++20)
For using gmp with g++ on Linux you should pass -lgmp option like:
g++ js_result.cpp -o js_bin -lgmp
For installing gmp
for Windows see this page
For installing fmtlib
you should build it using make
.