Je suis en train de créer une classe pour un programme, le header ressemble (pour l'instant) à ca :

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
25
26
27
28
29
30
31
32
33
 
#ifndef FICHIERANALYSE_H
#define FICHIERANALYSE_H
 
 
class fichier_analyse
{public:
 	  //INITIALISATION DU TIMESTAMP
        std::vector<int> temps;
//NOTRE FICHIER DE SORTIE
 
//QUAND EST LA PREMIERE SDU
        int num_SDU;
//QUAND EST LA PREMIERE PDU
        int num_PDU;
//RECHERCHE DE LA TRAME SDU DE DEPART
        std::stringstream buffer;
		int index_SDU_depart;
        int index_SDU_balayage;
//RECHERCHE DE LA TRAME SDU DE FIN
        int index_SDU_fin;
//RECHERCHE DE LA TRAME PDU DE DEPART
        int index_PDU_depart;
        int index_PDU_balayage;
//INITIALISATION DU VECTEUR DE PAIRES CONTENANT LES ERREURS PARITE ET LE MC
        int parite;
		std::vector< int > parite_mc_temp;
		std::vector< int > tableau_mc;
//DECLARATION DU TABLEAU [NUMERO DE SDU ; TAILLE DE SDU]
        std::vector< std::pair<int, int> > table_SDU;
        std::pair<int, int> paire_num_taille;
}
#endif
le début de mon main :

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
 
#include <fstream>
#include <string> 
#include <iostream>
#include <sstream>
#include <bitset>
#include <vector>
#include <iomanip>
#include "fichieranalyse.h"
 
 
using namespace std;
 
int main(int argc, char ** argv)
{
J'ai sans aucun doute un problème de linkage, j'utilise Dev-C++, mais je n'arrive pas à voir l'erreur, pourriez vous m'aider ?

L'erreur est : "main.cpp expected unqualified-id before "using" "
(manque-t-il un header en début de main ?)