On Fri, 2010-10-29 at 09:34 +0530, surensp...@gmail.com wrote: > I am new to Libreoffice and I was trying to build Libreoffice for the > first time. I ended up with this error - [1]. I figured it might be > because the file might not have included algorithm as the > 'lower_bound' function that was said missing is provided by algorithm > header. I naively added a > > <snip> > #include<algorithm> > using namespace std > </snip> > > to > .../build/build/libreoffice-3.2.99.2/forms/source/component/GroupManager.hxx > and the build worked. And right now proceeding with the build further.
Right, yes #include <algorithm> was the right fix. I pushed that last night, so it should be good now. You're instincts were correct. > But I am not sure this is the right way of doing it as I believe we > are using stlports and that would mean algorithm should come from > stlports and now from system provided STL. Please do advice how to > proceed to get it fixed. Nah, Ignore the stl implementation behind the curtain (For linux its only behind the curtain for x86 anyway). You generally don't need to worry about doing anything special for the stlport using ports, just #include <thenormalname> and its all taken care of, so indeed #include <algorithm> is good. C. _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice