Hi,
Compiling on Redhat 7.3 system yields this error:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE -DMITSHM -DNLS -DLOCALEPATH=\"/usr/local/share/blackbox/nls\" -I/usr/local/include -I/usr/X11R6/include -g -O2 -I/usr/X11R6/include -MT Unicode.lo -MD -MP -MF .deps/Unicode.Tpo -c Unicode.cc -o Unicode.o
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE -DMITSHM -DNLS -DLOCALEPATH=\"/usr/local/share/blackbox/nls\" -I/usr/local/include -I/usr/X11R6/include -g -O2 -I/usr/X11R6/include -MT Util.lo -MD -MP -MF ".deps/Util.Tpo" -c -o Util.lo Util.cc; \
then mv -f ".deps/Util.Tpo" ".deps/Util.Plo"; else rm -f ".deps/Util.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE -DMITSHM -DNLS -DLOCALEPATH=\"/usr/local/share/blackbox/nls\" -I/usr/local/include -I/usr/X11R6/include -g -O2 -I/usr/X11R6/include -MT Util.lo -MD -MP -MF .deps/Util.Tpo -c Util.cc -o Util.o
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE -DMITSHM -DNLS -DLOCALEPATH=\"/usr/local/share/blackbox/nls\" -I/usr/local/include -I/usr/X11R6/include -g -O2 -I/usr/X11R6/include -MT XDG.lo -MD -MP -MF ".deps/XDG.Tpo" -c -o XDG.lo XDG.cc; \
then mv -f ".deps/XDG.Tpo" ".deps/XDG.Plo"; else rm -f ".deps/XDG.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE -DMITSHM -DNLS -DLOCALEPATH=\"/usr/local/share/blackbox/nls\" -I/usr/local/include -I/usr/X11R6/include -g -O2 -I/usr/X11R6/include -MT XDG.lo -MD -MP -MF .deps/XDG.Tpo -c XDG.cc -o XDG.o
XDG.cc: In function `list<string, allocator<string> > readEnvDirList
(const char *, const char *)':
XDG.cc:65: `::find' undeclared (first use here)
make[2]: *** [XDG.lo] Error 1
make[2]: Leaving directory `/mnt/hdd/LinuxSW/blackbox/blackbox-0.70.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/hdd/LinuxSW/blackbox/blackbox-0.70.1'
make: *** [all] Error 2
Logged In: NO
as an addendum gcc version is 2.96 on Redhat 7.3 system
Logged In: YES
user_id=667423
Try adding this to XDG.cc:
#include <algorithm>
[courtesy of #c++@irc.freenode.org :)]
Theoretically it should be in there. I see it's been added
to other .cc files in lib/. I'm not sure why it works on
other platforms without it. It works on mine (technically an
RH9 upgraded somewhere in Fedora realm), and obviously on
other people's.
Sorry, don't have a Red Hat 7.3 handy.
XDG.cc was only recently started to be used, perhaps it's
been overlooked and backfires in particular cases.
Logged In: YES
user_id=1392683
Had the same issue on FreeBSD 4.8,
probably due an old gcc.
I modified lib/XDG.cc, added this line
#include "Application.hh"
That compiled, but src/Screen.cc failed with:
/usr/include/g++/stl_algo.h:94: comparison of ...
So I changed line 749 of Screen.cc to
'end = std::find(it, _stackingList.end(),
(StackEntity *) zero)'
and all seems well