Meilleur auteur de réponses
Déclarer une fonction

Question
-
Je maintient mon produit en standard pendant que je le passe en managé.
Dans ce cadre j'ai un problème de compilation que je ne comprend pas
Je vous met les déclarations:
/*_____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, CAnalysedWord *pWord); enChunkType CChunker::NewPosType(CAnalysedWord *pWord, CAnalysedWord *pNextWord); CAnalysedWord* CChunker::SetMark(std::wstring wsMark, enPOS POS, int len); void CChunker::CaseNoun( enPOS Curpos, CAnalysedChunk* pCurrentChunk, CAnalysedWord* pWord, int &Step, enPOS &DivingPos); }; extern bool m_bOptionProblem; //To know if Option Mananger have done his work or not extern SpecificationLoader::CChunker objChunker; }; #endif /* CHUNKER_H */
et je vous met le source
/*---------------------------------------------------------------*/ /*Name : InitiateCurrentNounSyntagme */ /*---------------------------------------------------------------*/ /*Role : Create Sintagme according to grammatical */ /* composition of the segment. */ /*Preconditions : Segmentation step already done and segment in */ /*In/Out : itWord, pCurrentChunk, ... */ /*Resource : OPTION MANAGER (OM) */ /*Return : Error code */ /*Constraints : SR44, Optimised, ChunkStruc must contains type */ /* information */ /*Behavior : */ /*---------------------------------------------------------------*/ CAnalysedChunk* CChunker::InitiateCurrentNounSyntagme( CLinguisticSegment* pLinguisticSegment, std::list<CAnalysedWord*>::iterator& itWord, CAnalysedChunk * pCurrentChunk, int& Step, enPOS& DrivingPos, bool bMarkOngoing, bool bPivotPending) {
et je met le résultat de compilation:
1>Chunker1.cpp(6052): error C2653: 'CChunker' : n'est pas un nom de classe ni d'espace de noms
Jean Noël Martin
Réponses
-
Il y avait un double invocation de namespace SpecificationLoader
Jean Noël Martin
- Marqué comme réponse JeanNoel53 mardi 24 mars 2015 15:19
- Non marqué comme réponse Paul BacelarModerator mercredi 25 mars 2015 18:11
- Marqué comme réponse JeanNoel53 vendredi 27 mars 2015 13:17
Toutes les réponses
-
-
Il y avait un double invocation de namespace SpecificationLoader
Jean Noël Martin
- Marqué comme réponse JeanNoel53 mardi 24 mars 2015 15:19
- Non marqué comme réponse Paul BacelarModerator mercredi 25 mars 2015 18:11
- Marqué comme réponse JeanNoel53 vendredi 27 mars 2015 13:17