We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Reference: https://stackoverflow.com/questions/38659115/make-fails-with-error-cannot-convert-stdistream-aka-stdbasic-istreamchar
The text was updated successfully, but these errors were encountered:
I second this issue. I have Ubuntu 18.04 and GCC 7.3 and can confirm that the above fix works for me.
Sorry, something went wrong.
Update graphlet_utils.cpp
cdccc5e
fixed compilation error: nkahmed#5
It is a reasonable error (and subsequent fix) given the definition and use of fexists(). I came across it too on Linux.
fexists()
I had the same issue. I fixed it with the same approach "(bool)ifile". I have Ubuntu 18.04 and GCC 7.5.
No branches or pull requests
When compiling using gcc 7.2.0 on macOS 10.13 High Sierra, I encountered the following error:
I changed 'return ifile;' to be 'return (bool)ifile;' and was able to compile successfully.
Reference: https://stackoverflow.com/questions/38659115/make-fails-with-error-cannot-convert-stdistream-aka-stdbasic-istreamchar
The text was updated successfully, but these errors were encountered: