bonjour,
J'ai un fichier qui ne compilent pas du fait des structures
je vous met le fichier structure,le fichier classesaligner et les messages d'erreurs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*******************************************************************************
* FILE NAME: Structure.h
* PURPOSE:   This file contains constants and user defined data for all the
*            classes.
* HISTORY:
* Date        Version                   Author
* 16/05/2003  initial version :1.0      JN Martin
*******************************************************************************/
#ifndef StructureH
#define StructureH
//--------------------------- INCLUDE-FILES ------------------------------------
using namespace std;
using namespace System;
//-------------------CONSTANTS AND USER DEFINED DATA TYPES----------------------
//------------------------------------------------------------------------------
	struct sEquation 
	{
		int len;
		char pWord1[40];
		char pWord2[40];
	};
 
	struct Splitt	
	{
		char* tete;
		char* queue;
	};
 
	struct stPOS
	{
		enPOS pPOS[NUMBER_OF_POS];
	};
 
	struct stUnivers
	{
      int idParagraph;
      std::wstring wsName;
	};
 
 
	struct stOptionStructure
	{
		std::wstring sSectionName;
		std::wstring sKeyName;
		std::wstring sValue;
	};
 
 
	struct stAnalysedWord
	{
		std::wstring				wsWord;					  //  Texte du mot
		std::wstring				wsLemma;				  //  Texte du lemma
		enPOS                       POS;                      //  Part Of Speech du lemma (et du mot)
		enGender                    Gender;                   //  Genre du lemma (et du mot)
		enPers                      iPers;
		enNbr                       iNbr;
		int                         iExcluded;                //  Le lemma est important ou non
		unsigned long               ulStart;                  //  Position du premier caractère du mot dans le segment
		unsigned long               ulLength;                 //  Longueur du mot (les espaces sont exclus)
	};
 
	struct stElementDescription
	{
		std::wstring sSectionName;
		std::wstring sKeyName;
		std::wstring sValue;
		unsigned int dwValue;
		bool bValue;
		std::wstring sDefaultValue;
		unsigned int dwDefaultValue;
		bool bDefaultValue;
		int iType;
	};
 
#endif
et les messages d'erruer:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
1>  OpenAFile.cpp
1>D:\usr\Specification LoaderV4.01\dev\Common\com\Structure.h(30): error C2011: 'stPOS'*: redéfinition du type 'struct'
1>          D:\usr\Specification LoaderV4.01\dev\Common\com\TypeDefs.hpp(34)*: voir la déclaration de 'stPOS'
1>D:\usr\Specification LoaderV4.01\dev\Common\com\Structure.h(42): error C2011: 'stOptionStructure'*: redéfinition du type 'struct'
1>          D:\usr\Specification LoaderV4.01\dev\Common\com\TypeDefs.hpp(27)*: voir la déclaration de 'stOptionStructure'
1>D:\usr\Specification LoaderV4.01\dev\Common\com\Structure.h(50): error C2011: 'stAnalysedWord'*: redéfinition du type 'struct'
1>          D:\usr\Specification LoaderV4.01\dev\Common\com\TypeDefs.hpp(39)*: voir la déclaration de 'stAnalysedWord'
1>D:\usr\Specification LoaderV4.01\dev\Common\com\POS.h(34): error C2079: 'SpecificationLoader::CPOS::stPos' utilise une struct de 'stPOS' non défini
1>
1>ÉCHEC de la build.
.
Je seria content d'avoir un conseil de qulqun de