rrazpo@rrazpo-desktop:~/Programme/tetris$ g++ -o tetris bloc.h gestionBlocs.h graphique.h jeu.h bloc.cpp gestionBlocs.cpp graphique.cpp jeu.cpp main.cpp -lsfml-graphics -lsfml-window -lsfml-system
gestionBlocs.cpp: In member function ‘void GestionBlocs::verifierBlocs()’:
gestionBlocs.cpp:39: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&GestionBlocs::estHorsTerrain’
gestionBlocs.cpp: At global scope:
gestionBlocs.cpp:46: error: definition of ‘bool GestionBlocs::estHorsTerrain(const Bloc&)’ is not in namespace enclosing ‘GestionBlocs’
gestionBlocs.cpp:46: error: prototype for ‘bool GestionBlocs::estHorsTerrain(const Bloc&)’ does not match any in class ‘GestionBlocs’
gestionBlocs.h:16: error: candidate is: bool GestionBlocs::estHorsTerrain(Bloc)
gestionBlocs.cpp: In member function ‘bool GestionBlocs::estHorsTerrain(const Bloc&)’:
gestionBlocs.cpp:48: error: passing ‘const Bloc’ as ‘this’ argument of ‘bool Bloc::getActiver()’ discards qualifiers
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h: In function ‘_OutputIterator std::remove_copy_if(_InputIterator, _InputIterator, _OutputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<Bloc*, std::vector<Bloc, std::allocator<Bloc> > >, _OutputIterator = __gnu_cxx::__normal_iterator<Bloc*, std::vector<Bloc, std::allocator<Bloc> > >, _Predicate = bool (GestionBlocs::*)(Bloc)]’:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:1291: instantiated from ‘_ForwardIterator std::remove_if(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<Bloc*, std::vector<Bloc, std::allocator<Bloc> > >, _Predicate = bool (GestionBlocs::*)(Bloc)]’
gestionBlocs.cpp:39: instantiated from here
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:1216: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Bloc*, std::vector<Bloc, std::allocator<Bloc> > >, _Predicate = bool (GestionBlocs::*)(Bloc)]’:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:338: instantiated from ‘_InputIterator std::find_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<Bloc*, std::vector<Bloc, std::allocator<Bloc> > >, _Predicate = bool (GestionBlocs::*)(Bloc)]’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:1287: instantiated from ‘_ForwardIterator std::remove_if(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<Bloc*, std::vector<Bloc, std::allocator<Bloc> > >, _Predicate = bool (GestionBlocs::*)(Bloc)]’
gestionBlocs.cpp:39: instantiated from here
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:260: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:264: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:268: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:272: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:280: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:284: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:288: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘__pred (...)’
Partager