Hoi!
I use the gentoo distribution, based on gcc 3.2.x and glibc 2.3.1.
When i try make ... i become this error:
mbackup-0.6 # make
cd src/lib/; make
make[1]: Entering directory `/root/bin/mbackup/mbackup-0.6/src/lib'
c++ -ggdb -Wall -DHAVE_CONFIG_H -c libmbackup.cc -o
libmbackup.o -I../include
libmbackup.cc:21: `map' was not declared in this scope
libmbackup.cc:21: parse error before `int'
libmbackup.cc: In function `void merge(...)':
libmbackup.cc:22: `map' undeclared (first use this function)
libmbackup.cc:22: (Each undeclared identifier is reported only once
for each
function it appears in.)
libmbackup.cc:22: parse error before `int'
libmbackup.cc:25: `curr' undeclared (first use this function)
libmbackup.cc:25: `foo' undeclared (first use this function)
libmbackup.cc:27: `next' undeclared (first use this function)
make[1]: *** [libmbackup.o] Error 1
make[1]: Leaving directory `/root/bin/mbackup/mbackup-0.6/src/lib'
make: *** [all] Error 2
What is '#include <map>' ?
SirDodger
Logged In: YES
user_id=7767
I haven't had time to look at mbackup in about a year. I
suspect the problem is stricter namespace rules in the newer
gcc/glibc combo.
Try adding "using namespace std; " After the #include lines.
I should also mention that mbackup isn't ready for use yet.
I don't use it myself yet, so it's not ready for end-user
consumption.