locked
un link qui pose problème RRS feed

  • Question

  • bonjour

    J'ai un problème de link que je ne comprends pas;

    1>Proposition.obj : error LNK2020: jeton non résolu (0A00014C) "bool SpecificationLoader::bTitle" (?bTitle@SpecificationLoader@@3_NA)
    1>Proposition.obj : error LNK2001: symbole externe non résolu "bool SpecificationLoader::bTitle" (?bTitle@SpecificationLoader@@3_NA)
    1>D:\usr\Specification LoaderV4.01\dev\ALN_Kernel\make\SpecificationLoader\Debug\SpecificationLoader.exe : fatal error LNK1120: 2 externes non résolus

    la déclaration de bool SpecifciationLoader::bTitle se trouve dans SchedulerGlobal

    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;
    	namespace Word = Microsoft::Office::Interop::Word;
    	using namespace Runtime::InteropServices;
    
    
    	extern enChunkType					NextPos[6];
    	std::list<CElementSemantique*>*		pListProposition;
    	bool								bNewSegment;
    	bool								bQualificateur;
    	extern enStatusDoc					eStatus;
    	FILE*								fp;
    
    CAnalysedSegment   NewSegment;
    CLinguisticSegment NewLinguisticSegment;
    extern CAnalysedSegment  *pSegment;
    
    extern std::wstring                                 wsOldIdentifier;
    extern std::wstring                                 wsActualUnivers;
    extern std::wstring                                 wsOldParagraph;
    
    
    
       
    /*---------------------------------------------------------------*/
    /*                CLASS SCHEDULER GLOBAL                         */
    /*---------------------------------------------------------------*/
    /*---------------------------------------------------------------*/
    /*Name          : Constructor                                    */
    /*---------------------------------------------------------------*/
    CSchedulerGlobal::CSchedulerGlobal()
    {
      m_Language = (enLanguage) 2;
    
      m_pNgramer = &objNgramer;
      m_pSegmentation = &objSegmentation;
      m_pComputingForAlignment = &objComputingForAlignment;
      m_pAnnexFunctions = &objAnnexFunctions;
      m_pParser = &objParserManager;
      m_pSegmentation = &objSegmentation;
      m_pComputingForAlignment = &objComputingForAlignment;
      m_pParser->InitParserManager( m_Language);
    }
    CSchedulerGlobal::~CSchedulerGlobal()
    {
    }
    
    void CSchedulerGlobal::InitAnalyse()
    {
    	BTagger_setup();
    	nBloc  = 0;
    	nParagraph = 0;
    	wsActualUnivers = L"";
    }
    extern std::wstring wsNextUnivers;
    static unsigned long ulSegDocPosition;
    erc CSchedulerGlobal::AnalyseBlocText(CBloc* pBloc, std::list<CAnalysedSegment*>* pListSegment, erc ulTotalNbWords, bool bIsNewDoc)
    {
    	enum CSchedulerGlobalError
    	{
    		ERROR_DOCUMENT_MANAGER_START_READER = 1,
    		ERROR_DOCUMENT_MANAGER_OPEN_DOC,
    		ERROR_DOCUMENT_MANAGER_INIT_POINT_BLOC,
    		ERROR_DOCUMENT_MANAGER_READ_BLOC,
    		ERROR_PARSER_MANAGER_PARSE_BLOC,
    		ERROR_SEGMENTATION_SPLIT_IN_SEGMENT,
    		ERROR_CHUNKER_SPLIT_IN_CHUNK,
    		ERROR_CANNOT_SEARCH_NGRAM,
    		ERROR_SEGMENTATION_ADD_SPACE,
    		ERROR_MISSION_DATABASE_CREATE_SEGMENT,
    		ERROR_CANNOT_COMPUTE_ALIGNMENT_SCORE,
    		POINTER_NULL,
    		ERROR_DATABASE_PROBLEM,
    		CANT_GO_TO_NEXT_BLOC,
    	};
    	std::list<CAnalysedWord *>::iterator     itWord;
        std::list<CAnalysedChunk *>::iterator    itChunk;
        std::list<CAnalysedSegment *>::iterator  itSegment;
    	std::list<CVirtualEquations*>::iterator   itEquation;
    	std::list<CElementSemantique *>::iterator itProposition;
    	std::list<CAnalysedWord *>*              pListWord;
    	CLayout*                                 pLayout = 0;
    	CAnalysedWord *                          pWord;
    	CMDBManager* pDatabase;
    	pDatabase = &SpecificationLoader::objMDBManager;
    	std::wstring                             wsText;
    	std::wstring                             wsNxIdentifier;
    	std::wstring	                         wsParagraphe;
    	std::wstring                             wsIdentifier;
    	std::wstring                             wsOldParagraph;
    	std::wstring                             wsOldIdentifier;
    	std::wstring                             wsProposition;
    	std::wstring                             wsEquation;
    	std::wstring                             wsChunk;
      	int                                      Status;
    	int                                      nSegment;
    	int                                      iSize;
    	int                                      iNum = 0;
        bool*                                    pbNewSegment;
    	bool                                     bTitle;
    	bool                                     bIsStopped;
    	bool                                     bIsFirst;
    	bool                                     bIsIdentified;
    	bool                                     bWasIdentified;
    	bool                                     bIsProcessed;
    	bool                                     bWasAnalysed = false;
    	bool                                     bBlocToStore;
    	bool					 bIsInvalid = false;
    	bool                                     bBarred;
    	bool                                     bListOfListAllocated;
    	char *                                   Word;
    	erc                                      ErrorCode = INIT_NO_ERROR;
    	enChunkType                              NextPos[6];
    	enPOS                                    pos;
    	CAnalysedChunk*							 pChunkSubject;
    


    Jean Noël Martin


    lundi 6 juin 2016 21:23

Réponses

  • >la déclaration de bool SpecifciationLoader::bTitle se trouve dans SchedulerGlobal.

    Et non, c'est une variable locale de CSchedulerGlobal::AnalyseBlocText, pas un membre de SchedulerGlobal ni dans le namespace SpecificationLoader, là où le compilateur le cherche.


    Paul Bacelar, Ex - MVP VC++

    mardi 7 juin 2016 09:17
    Modérateur

Toutes les réponses