Menu

#1098 Problem compiling LexCPP.cxx with WDK

Bug
closed-fixed
Scintilla (830)
5
2011-03-22
2011-02-12
Anonymous
No

Hi. After the addition of SparseState.h I was getting an error when building scintilla with WDK.

..\lexlib\SparseState.h(42) : error C3861: 'lower_bound': identifier not found
..\lexlib\SparseState.h(35) : while compiling class template member function 'std::string SparseState<T>::ValueAt(int)'
with
[
T=std::string
]
..\scintilla\lexers\LexCPP.cxx(321) : see reference to class template instantiation 'SparseState<T>' being compiled
with
[
T=std::string
]

It's solved when I add "using namespace std;" in LexCPP.cxx. MSVC 2010 is not affected, only WDK.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2011-02-12
    • assigned_to: nobody --> nyamatongwe
    • milestone: --> Bug
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2011-02-12

    Probably just needs a std:: in front of lower_bound.

     
  • Neil Hodgson

    Neil Hodgson - 2011-03-22
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.