I am getting the following compilation error:
> Making all in cprof
> make[2]: Entering directory `/home/kunal/sources/cprof-1.0.2/cprof'
> source='callstack.C' object='callstack.o' libtool=no \
> depfile='.deps/callstack.Po' tmpdepfile='.deps/callstack.TPo' \
> depmode=gcc3 /bin/sh ../depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../include -I../include/sysdeps/i386 -I/include
> -I/home/kunal/sources/libelf/install/include -g -O2 -Wall -c -o callstack.o `test -f 'callstack.C' || echo './'`callstack.C
> profiledata.h:69: warning: 'struct ProfileData::ArcVisitor' has virtual functions but non-virtual destructor
> stringref.h: In constructor 'basic_string_ref<T, traits>::basic_string_ref()':
> stringref.h:48: error: 'empty_string' was not declared in this scope
> make[2]: *** [callstack.o] Error 1
> make[2]: Leaving directory `/home/kunal/sources/cprof-1.0.2/cprof'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/kunal/sources/cprof-1.0.2'
> make: *** [all] Error 2
The g++ version is
> g++ -v
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang
> --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
> Thread model: posix
> gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)