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.
[Patch] fix build problem rev 2742 (on Linux)
-
- CodeLite Enthusiast
- Posts: 20
- Joined: Wed Sep 24, 2008 9:49 pm
[Patch] fix build problem rev 2742 (on Linux)
You do not have the required permissions to view the files attached to this post.
- 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)
Btw, I am using here Kubuntu 8.04 64bit/g++ 4.2.4 and it is compiling fine.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>
I will add the include anyways, but still strange.
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 69
- Joined: Fri Oct 24, 2008 10:29 pm
- Contact:
Re: [Patch] fix build problem rev 2742 (on Linux)
This might be a change in gnu 4.3+. I had the same compiler error yesterday.
Scott
Scott