OK, problem solved. Turns out the error message: operations.cpp: In function 'bool KJS::isInf(double)': operations.cpp:70: error: 'isinf' was not declared in this scope means that the function isinf is missing a prototype. Adding: int isinf(double); at the top of the source file, fixed the problem.