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

Discussion about CodeLite development process and patches
cenix
CodeLite Enthusiast
Posts: 20
Joined: Wed Sep 24, 2008 9:49 pm

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

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
sdolim
CodeLite Veteran
Posts: 69
Joined: Fri Oct 24, 2008 10:29 pm
Contact:

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

Post by sdolim »

This might be a change in gnu 4.3+. I had the same compiler error yesterday.

Scott
Post Reply