Building codelite-9.2 [Win_x86_Release] error

CodeLite installation/troubleshooting forum
EdenWang
CodeLite Curious
Posts: 1
Joined: Thu Aug 18, 2016 6:32 am
Genuine User: Yes
IDE Question: c++
Contact:

Building codelite-9.2 [Win_x86_Release] error

Post by EdenWang »

Hi guys
I am using Codelite-9.2.0 with wxWidgets-3.0.2 on WinXP with MinGW-4.7.1
My Environment variables are:

CodeLiteDir=C:\Program Files\codelite
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3
WXWIN=C:\wxWidgets-3.0.2
PATH=$(WXWIN)\lib\gcc_dll;$(PATH)
WXCFG=gcc_dll\mswu


It happened error and show the following message:

D:/GPL/codelite-9.2/CodeLite/ctags_manager.cpp: In member function `void TagsManager::DoFilterCtorDtorIfNeeded(std::vector<TagEntryPtr, std::allocator<TagEntryPtr> >&, const wxString&)':
D:/GPL/codelite-9.2/CodeLite/ctags_manager.cpp:3308: error: expected primary-expression before '[' token
D:/GPL/codelite-9.2/CodeLite/ctags_manager.cpp:3308: error: expected primary-expression before ']' token
D:/GPL/codelite-9.2/CodeLite/ctags_manager.cpp:3308: error: expected primary-expression before "tag"
mingw32-make.exe[1]: *** [Win_x86_Release/ctags_manager.cpp.o] Error 1

the following is one part of ctags_manager.cpp

void TagsManager::DoFilterCtorDtorIfNeeded(std::vector<TagEntryPtr>& tags, const wxString& oper)
{
if((oper == "->") || (oper == ".")) {
// filter out the constructors / destructors
std::vector<TagEntryPtr> candidatesNoCtorDtor;
candidatesNoCtorDtor.reserve(tags.size());
std::for_each(tags.begin(), tags.end(), [&](TagEntryPtr tag) {
if(!tag->IsConstructor() && !tag->IsDestructor()) {
candidatesNoCtorDtor.push_back(tag);
}
});
tags.swap(candidatesNoCtorDtor);
}
}

Is there any body knowing what happen?
Thanks very much

Eden
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building codelite-9.2 [Win_x86_Release] error

Post by eranif »

you need a c++ compiler that supports c++11

this looks like the problem
Make sure you have read the HOW TO POST thread
Post Reply