When compiling using gcc 7.2.0 on macOS 10.13 High Sierra, I encountered the following error:
graphlet_utils.cpp: In function 'bool fexists(const char*)':
graphlet_utils.cpp:42:12: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return
return ifile;
^~~~~
make: *** [pgd] Error 1
I changed 'return ifile;' to be 'return (bool)ifile;' and was able to compile successfully.