Page 1 of 1

[Patch] fix build problem rev 2742 (on Linux)

Posted: Sat Jan 24, 2009 5:11 pm
by cenix
Updating to rev 2742 broke my build. Turned out a missing include.
In ./LiteEditor/addoptioncheckdlg.cpp (line 132), std::find could not be found.

To fix: include this line:

#include <algorithm>


Note that I made the patch with this command: svn diff -x --ignore-eol-style addoptioncheckdlg.cpp
due to line endings. It might be less work (for EOL fixing) to just include the include instead of applying this patch.

Re: [Patch] fix build problem rev 2742 (on Linux)

Posted: Sat Jan 24, 2009 6:18 pm
by eranif
cenix wrote:Updating to rev 2742 broke my build. Turned out a missing include.
In ./LiteEditor/addoptioncheckdlg.cpp (line 132), std::find could not be found.

To fix: include this line:

#include <algorithm>
Btw, I am using here Kubuntu 8.04 64bit/g++ 4.2.4 and it is compiling fine.

I will add the include anyways, but still strange.

Eran

Re: [Patch] fix build problem rev 2742 (on Linux)

Posted: Sun Jan 25, 2009 2:26 am
by sdolim
This might be a change in gnu 4.3+. I had the same compiler error yesterday.

Scott