I am learning CodeCompletion function from Codelite Open Source.Run CCTest at ..\CodeCompletionsTests\CCTestCCTest.project. Have compiler errors, as fllowing:
C:/svnfromCodelite/CodeCompletionsTests/CCTest/cctest.cpp:41: undefined reference to `_imp__wxEVT_PARSE_THREAD_RETAGGING_PROGRESS'
C:/svnfromCodelite/CodeCompletionsTests/CCTest/cctest.cpp:43: undefined reference to `_imp__wxEVT_PARSE_THREAD_RETAGGING_PROGRESS'
C:/svnfromCodelite/CodeCompletionsTests/CCTest/cctest.cpp:42: undefined reference to `_imp__wxEVT_PARSE_THREAD_RETAGGING_PROGRESS'
C:/svnfromCodelite/CodeCompletionsTests/CCTest/cctest.cpp:43: undefined reference to `_imp__wxEVT_PARSE_THREAD_RETAGGING_PROGRESS'
Why occur such error?
//---------------------------------CCTest.cpp-------------------------------
#define USE_CLI_EVENTS 1
#include <wx/init.h> //wxInitializer
#include <wx/string.h> //wxString
#include "tester.h"
#include <wx/ffile.h>
#include <wx/event.h>
#include <memory>
#include <vector>
#include <cpptoken.h>
#include <refactorengine.h>
#include <cppwordscanner.h>
#include <stringsearcher.h>
#include <parse_thread.h>
#include <wx/tokenzr.h>
// CodeLite includes
#include <ctags_manager.h>
wxString LoadFile(const wxString &filename)
{
wxFFile f(filename.c_str(), wxT("r"));
if(f.IsOpened()) {
wxString content;
f.ReadAll(&content);
return content;
}
return wxEmptyString;
}
class EventHandler : public wxEvtHandler
{
public:
void OnParsingDone(wxCommandEvent &e);
void OnParsingDoneProg(wxCommandEvent &e);
DECLARE_EVENT_TABLE();
};
BEGIN_EVENT_TABLE(EventHandler, wxEvtHandler)
EVT_COMMAND(wxID_ANY, wxEVT_PARSE_THREAD_RETAGGING_PROGRESS, EventHandler::OnParsingDoneProg)
EVT_COMMAND(wxID_ANY, wxEVT_PARSE_THREAD_RETAGGING_PROGRESS, EventHandler::OnParsingDone)
END_EVENT_TABLE()
Compile CodeCompletion from Open Source
-
- CodeLite Curious
- Posts: 1
- Joined: Thu Jan 31, 2013 8:53 am
- Genuine User: Yes
- IDE Question: C++
- Contact: