Skip to content
New issue

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

error: cannot convert ‘std::ifstream’ {aka ‘std::basic_ifstream<char>’} to ‘bool’ in return #2

Open
yungsiyebu opened this issue Nov 21, 2021 · 0 comments

Comments

@yungsiyebu
Copy link

Dear author:

I get error report below when I tried to install iMAAPs, and I'm sure that I had installed gsl, fftw and openmp with conda successfully.

tools.cpp: In function ‘bool file_check(const string&)’:
tools.cpp:26:9: error: cannot convert ‘std::ifstream’ {aka ‘std::basic_ifstream’} to ‘bool’ in return
return fp;
^~
tools.cpp: In function ‘bool file_open(const string&)’:
tools.cpp:35:9: error: cannot convert ‘std::ofstream’ {aka ‘std::basic_ofstream’} to ‘bool’ in return
return fp;
^~
make: *** [Makefile:19: tools.o] Error 1

Best regards
Wang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant