Rostlab / ConSurf

Evolutionary conservation estimation of residues or nucleotides
http://consurf.tau.ac.il/overview.html
GNU General Public License v3.0
33 stars 12 forks source link

Got error when running ./rate4site_build.sh #19

Closed mullinyu closed 2 years ago

mullinyu commented 6 years ago

I'm trying to build rate4site by the following command on a Linux machine and got the following error.

~/software/ConSurf/3rd party software$ ./rate4site_build.sh g++ -O3 -Wno-deprecated -c -o errorMsg.o errorMsg.cpp errorMsg.cpp: In static member function 'static void errorMsg::reportError(const std::vector<std::__cxx11::basic_string >&, int)': errorMsg.cpp:18:39: error: no match for 'operator!=' (operand types are 'std::ostream {aka std::basic_ostream}' and 'std::ostream {aka std::basic_ostream}') if (_errorOut != NULL && *_errorOut != cerr) {


errorMsg.cpp:18:39: note: candidate: operator!=(int, int) <built-in>

Any ideas?

Thanks!
juanmirocks commented 6 years ago

Thank you very much for reporting the issue. I cannot help you but maybe somebody at @Rostlab/members can

hypostulate commented 5 years ago

I just tackled this error. It is due to new C++11 compiler error when implicitly converting streams to bool. See this stackoverflow post.

The .cpp code can be fixed by changing from instances of if (stream == NULL) to if (stream.fail()) and from if (stream != NULL) to if (stream).

jushui commented 3 years ago

Could you explain in detail ?I don't understand

yazhinia commented 2 years ago

How to resolve a similar error for this part *_errorOut != cerr in the if condition?

sacdallago commented 2 years ago

Unfortunately, we don't have the capacity to maintain this tool, and it's thus depecreated. If you are interested in protein conservation prediction, consider running VESPA instead: https://github.com/Rostlab/VESPA#step-2-conservation-prediction

yazhinia commented 2 years ago

Okay. Thank you for the quick response and for sharing the useful link.

kingdavid72 commented 1 year ago

after C++11 standard we should use nullptr instead of NULL. and if (_errorOut != nullptr && !(_errorOut == &cerr)) we have to change compule more errors in .cpp files