Compile error: balance.cpp:595: error: ‘INT64_MAX’ was not declared in this scope

Just put this line at the top of balance.cpp

#include "lmptype.h"

Steve