Ticket #66 (closed: fixed)
Build stop `for_each' algorithm undeclared
| Reported by: | Nick | Owned by: | alwin |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.8.x |
| Component: | All | Version: | 0.8.x |
| Severity: | block | Keywords: | RESOLVED |
| Cc: |
Description
Slackware 10 (heavily updated), GCC 3.3.4.
Latest svn fails to build on my system with this error:
cacheentry.h: In member function `void helpers::itemCache::listsubs_if(const
QString&, T&) const [with T = helpers::ValidRemoteOnly?]':
svnactions.cpp:1695: instantiated from here cacheentry.h:156: error: `for_each' undeclared (first use this function) cacheentry.h:156: error: (Each undeclared identifier is reported only once for
each function it appears in.)
cacheentry.h: In member function `void
helpers::cacheEntry::listsubs_if(QStringList&, T&) const [with T = helpers::ValidRemoteOnly?]':
svnactions.cpp:160: instantiated from here cacheentry.h:99: error: `for_each' undeclared (first use this function) make[4]: * [svnactions.lo] Error 1
ADDITIONAL INFORMATION: I fixed this by adding:
src/svnfrontend/cacheentry.h
std::map 'cause QMap isn't usable #include <map> #include <qstring.h> #include <qstringlist.h> +#include <algorithm>
Nick
