Bonjour tout le monde,

alors mon erreur est toute simple, et à priori il s'agit d'une mauvaise installation de gcc ... mais j'aime bien voir vos reflexions :




[root@localhost mar]# gcc --version
gcc (GCC) 4.3.0 20080416 (Red Hat 4.3.0-7)
Copyright © 2008 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie. Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

[root@localhost mar]# cat test.cc
#include <iostream>
#include <vector>

using namespace std;

int main(int argc, char* argv[]){
vector<int> v;

v.push_back(10);
vector<int>::iterator it=find(v.begin(),v.end(),10);
if(it != v.end())
cout<<"bon";
else
cout<<"pas bon";
}
[root@localhost mar]# gcc test.cc
test.cc: In function ‘int main(int, char**)’:
test.cc:10: erreur: no matching function for call to ‘find(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, int)’
[root@localhost mar]#




qu'est ce que vous en penez ?

merci d'avance,