bonjour,
J'ai une casse qui compilait avant
et qui ne compile plus
je vous met la définition extraite des inclues :
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
class CAnalysedWord
{
public:
 
  unsigned long long          ullWordID;               //  Identifiant du Word dans la base de données
  unsigned long long          ullLemmaID;              //  Identifiant du Lemma dans la base de données
  std::wstring                wsWord;                   //  Texte du mot
  std::wstring                wsLemma;                  //  Texte du lemma
  enPOS                       POS;                      //  Part Of Speech du lemma (et du mot)
  enGender                    iGender;                  //  Genre du lemma (et du mot)
  enPers                      iPers;
  enNbr                       iNbr;
  std::wstring                wsPronunciation;          //  Prononciation du lemma (pour le japonais)
  int                         iExcluded;                //  La valeur du 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)
 
 
  CAnalysedWord()
  {
  }
  ~CAnalysedWord()
  {;}
};
Je vous met le header
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*******************************************************************************
* NOM: Chunker.h
* ROLE:
* HISTORIQUE:
* 05/05/2003, yab, initial version
*******************************************************************************/
#ifndef CHUNKER_H
#define CHUNKER_H
/*_____INCLUDE-FILES__________________________________________________________*/
 
 
 
/*_____GLOBAL-DEFINE__________________________________________________________*/
#define OPTION_SECTION_CCHUNKER                               L"CCHUNKER"
 
#define OPTION_KEYNAME_VERB_FRENCH                            L"VERB_FRENCH"
#define OPTION_KEYNAME_NOUN_FRENCH                            L"NOUN_FRENCH"
#define OPTION_KEYNAME_PRESTOPPER_FRENCH                      L"PRESTOPPER_FRENCH"
#define OPTION_KEYNAME_POSTSTOPPER_FRENCH                     L"POSTSTOPPER_FRENCH"
#define OPTION_KEYNAME_FUNCT_FRENCH                           L"FUNCT_FRENCH"
#define OPTION_KEYNAME_LEMMA_NON_STOPPER_FRENCH               L"LEMMA_NON_STOPPER_FRENCH"
 
 
#define OPTION_KEYNAME_VERB_ENGLISH                           L"VERB_ENGLISH"
#define OPTION_KEYNAME_NOUN_ENGLISH                           L"NOUN_ENGLISH"
#define OPTION_KEYNAME_PRESTOPPER_ENGLISH                     L"PRESTOPPER_ENGLISH"
#define OPTION_KEYNAME_POSTSTOPPER_ENGLISH                    L"POSTSTOPPER_ENGLISH"
#define OPTION_KEYNAME_FUNCT_ENGLISH                          L"FUNCT_ENGLISH"
#define OPTION_KEYNAME_LEMMA_STOPPER_ENGLISH                  L"LEMMA_STOPPER_ENGLISH"
 
 
#define OPTION_KEYNAME_VERB_SPANISH                           L"VERB_SPANISH"
#define OPTION_KEYNAME_NOUN_SPANISH                           L"NOUN_SPANISH"
#define OPTION_KEYNAME_PRESTOPPER_SPANISH                     L"PRESTOPPER_SPANISH"
#define OPTION_KEYNAME_POSTSTOPPER_SPANISH                    L"POSTSTOPPER_SPANISH"
#define OPTION_KEYNAME_FUNCT_SPANISH                          L"FUNCT_SPANISH"
#define OPTION_KEYNAME_LEMMA_NON_STOPPER_SPANISH              L"LEMMA_NON_STOPPER_SPANISH"
 
 
#define OPTION_KEYNAME_VERB_ITALIAN                           L"VERB_ITALIAN"
#define OPTION_KEYNAME_NOUN_ITALIAN                           L"NOUN_ITALIAN"
#define OPTION_KEYNAME_PRESTOPPER_ITALIAN                     L"PRESTOPPER_ITALIAN"
#define OPTION_KEYNAME_POSTSTOPPER_ITALIAN                    L"POSTSTOPPER_ITALIAN"
#define OPTION_KEYNAME_FUNCT_ITALIAN                          L"FUNCT_ITALIAN"
#define OPTION_KEYNAME_LEMMA_NON_STOPPER_ITALIAN              L"LEMMA_NON_STOPPER_ITALIAN"
 
 
#define OPTION_KEYNAME_VERB_GERMAN                            L"VERB_GERMAN"
#define OPTION_KEYNAME_NOUN_GERMAN                            L"NOUN_GERMAN"
#define OPTION_KEYNAME_PRESTOPPER_GERMAN                      L"PRESTOPPER_GERMAN"
#define OPTION_KEYNAME_POSTSTOPPER_GERMAN                     L"POSTSTOPPER_GERMAN"
#define OPTION_KEYNAME_FUNCT_GERMAN                           L"FUNCT_GERMAN"
#define OPTION_KEYNAME_LEMMA_NON_STOPPER_GERMAN               L"LEMMA_NON_STOPPER_GERMAN"
 
/*_____GLOBAL-TYPES___________________________________________________________*/
 
/*_____GLOBAL-DATA____________________________________________________________*/
 
/*_____GLOBAL-MACROS__________________________________________________________*/
/*_____GLOBAL-FUNCTIONS-PROTOTYPES____________________________________________*/
namespace SpecificationLoader
{
    using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::IO;
 
 
/*_____CLASS-DEFINITION_______________________________________________________*/
 
class CChunker
{
  private:
    std::list<enPOS> m_ListPosVerb;                 //Pos List for verb chunk type
    std::list<enPOS> m_ListPosNoun;                 //Pos List for noun chunk type
    std::list<enPOS> m_ListPostStopper;             //Pos List for poststopper chunk type
    std::list<enPOS> m_ListPreStopper;              //Pos List for prestopper chunk type
    std::list<enPOS> m_ListPosFunct;                //Pos List for function chunk type
    std::list<std::wstring> m_wsListLemmaNonStopper;//Lemma Stopper list
    enum enCChunkerMethod
    {
          SPLIT_INTO_CHUNK =1,
    };
  public:
    CChunker::CChunker();
    CChunker::~CChunker();
    enPOS CChunker::TestPosType(CAnalysedWord *pWord);
    erc CChunker::SplitIntoChunk(CAnalysedSegment *pSegment, std::wstring id);
	//                                                                         1                                                        2                       3                   4            5                6                  7                                                   8
    CAnalysedChunk* CChunker::AnalyseCurrentVerbSyntagme( CLinguisticSegment* pLinguisticSegment, std::list<CAnalysedWord*>::iterator& itWord, CAnalysedChunk* pCurrentChunk, int& Step, enPOS& DrivingPos, bool bMarkOngoing, bool bPivotPending, std::list<CAnalysedWord*>::iterator& itEndWord);
	CAnalysedChunk* CChunker::AnalyseCurrentNounSyntagme( CLinguisticSegment* pLinguisticSegment, std::list<CAnalysedWord*>::iterator& itWord, CAnalysedChunk* pCurrentChunk, int & Step, enPOS & DrivingPos, bool bMarkOngoing, bool bPivotPending);
	CAnalysedChunk* CChunker::InitiateCurrentNounSyntagme( CLinguisticSegment* pLinguisticSegment, std::list<CAnalysedWord*>::iterator& itWord, CAnalysedChunk* pCurrentChunk, int& Step, enPOS& DrivingPos, bool bMarkOngoing, bool bPivotPending);
	CAnalysedChunk* CChunker::InitiateCurrentVerbSyntagme( CLinguisticSegment* pLinguisticSegment, std::list<CAnalysedWord*>::iterator& itWord, CAnalysedChunk* pCurrentChunk, int& Step, enPOS& DrivingPos, bool bMarkOngoing, bool bPivotPending);
	bool CChunker::IsSameChunkType(enChunkType TypeOfPreviousWord, CAnalysedWord0* pWord);
    enChunkType CChunker::NewPosType( CAnalysedWord* pWord, CAnalysedWord* pNextWord);
    CAnalysedWord* CChunker::SetMark(std::wstring wsMark, enPOS POS, int len);
};
extern bool m_bOptionProblem;                   //To know if Option Mananger have done his work or not
extern SpecificationLoader::CChunker objChunker;
};
 
 
 
#endif /* CHUNKER_H */
je vous met le 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
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
 
/*_____LOCAL-DEFINE___________________________________________________________*/
/*_____LOCAL-TYPES____________________________________________________________*/
/*_____GLOBAL-DATA____________________________________________________________*/
 
extern int						 nParagraph;
std::string                      msg;
extern std::list<CAnalysedWord*>* pListWord;
static int						 asoonas;
static int						 nNum;
static int nNamed;
static int nColor;
static int nMark;
/*_____LOCAL-DATA_____________________________________________________________*/
/*_____LOCAL-MACROS___________________________________________________________*/
/*_____LOCAL-FUNCTIONS-PROTOTYPES_____________________________________________*/
/*_____GLOBAL-FUNCTIONS_______________________________________________________*/
/*_____LOCAL-FUNCTIONS________________________________________________________*/
//
/*---------------------------------------------------------------*/
/*                CLASS CHUNKER                                  */
/*---------------------------------------------------------------*/
/*This module determines how a chunk  is made. Segments are      */
/*splitted according to grammatical composition. A chunk is one, */
/*two or more POS which have grammatically the same type.For each*/
/*language it's necessary to define categories in order torespect*/
/*linguistic specificities so,each specificities will be stored  */
/*in the CHUNKS File. This special file comes from OPTION MANAGER*/
/*---------------------------------------------------------------*/
//
//DATA
//  STRUCT stWord          To Store Word informations
//    sWord                String characters of word
//    sLemma               Lemma of word
//    sPOS                 Part of speech from word
//    sGender              Gender of word
//    sPronunciation       Pronunciation of word
//    Boolean bExcluded    Point out if word is important or not
//
//  verbList               List of POS which belong to verb family
//  nounList               List of POS which belong to noun family
//  stopperList            List of POS which belong to stooper family
//
//  STRUCT stChunk         Contain information for chunk
//    stWordList           List of stWord in the chunk
//    sTypeOfChunk         Specify the type of chunk
//
//  stChunkList            List of stChunk
//ATAD
namespace SpecificationLoader
{
    using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::IO;
et je vous met les injures du compilateur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
1>..\..\..\..\Linguistic\Analyser\src\chunker.cpp(55): error C2065: 'CAnalysedWord'*: identificateur non déclaré
1>..\..\..\..\Linguistic\Analyser\src\chunker.cpp(55): error C2059: erreur de syntaxe*: '>'
1>..\..\..\..\Linguistic\Analyser\src\chunker.cpp(98): error C2143: erreur de syntaxe*: absence de ';' avant '{'
celui qui m'aidera sera