I am trying to compile a program coded in C++. It compiles perfectly on Mac OSX but it fails on Linux. I have been trying on two independent clusters running on Linux and it fails to compile on both.
Here is the error I am getting:
src/LCEcomposite.cc:513: error: no matching function for call to ‘find(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >, unsigned int&)’
Here is the line of code that causes the trouble (line 513 in LCEcomposite.cc)
if(find(_TraitIndices.begin(), _TraitIndices.end(), i) == _TraitIndices.end()) {
Here is the make version on Linux
gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
Here is the gcc version on Linux
GNU Make 3.81
This program built for x86_64-redhat-linux-gnu
Here is the output of uname -a
Linux seawolf2 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
algorithminLCEcomposite.ccand nothing matched. Does it answer you question?findis in thealgorithmheader, and should compile perfectly fine for the version of GCC he's using, and even older ones.