Salut a tous ,

Bon , la solution doit être simple mais je ne la connais pas.
Voici un code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
 
#ifndef CONTENEUR_H
#define CONTENEUR_H
#include "link.h"
#include "Qualification.h"
using namespace std ;
 
class Conteneur
{
    public:
        int date ;
        hash_map<Qualification , bool> sequence ;
 
        Conteneur(int);
        Conteneur(const Conteneur&);
        virtual ~Conteneur();
        void ajouterQualification(Qualification) ;
 
    protected:
    private:
};
 
#endif // CONTENEUR_H
Dans link.h on trouve bien : #include <ext/hash_map>

Neamoins j'ai la compilation suivante :


Conteneur.h|11|error: ISO C++ forbids declaration of 'hash_map' with no type|
Conteneur.h|11|error: expected ';' before '<' token|


||=== Build finished: 2 errors, 1 warnings ===|


Merci d'avance