I'm trying to build EnergyPlus on my local machine (Linux release 7.5.1804) with Python version 3.7.3. It compiles through all the dependency files (airflownetworklib) but it throws an error on the main.cpp file at the end. Here is the error, Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous. The call for the function: json::to_ubjson(epJSON, convertedFS);
The functions for which the error has been raised are:
static std::vector<uint8_t> to_ubjson(const basic_json& j, const bool use_size = false, const bool use_type = false) { std::vector<uint8_t> result; to_ubjson(j, result, use_size, use_type); return result; }
static void to_ubjson(const basic_json& j, detail::output_adapter< uint8_t> o, const bool use_size = false, const bool use_type = false) { binary_writer< uint8_t>(o).write_ubjson(j, use_size, use_type); }
static void to_ubjson(const basic_json& j, detail::output_adapter< char> o, const bool use_size = false, const bool use_type = false) { binary_writer< char>(o).write_ubjson(j, use_size, use_type); }