Boost logo

Boost Users :

Subject: [Boost-users] [interprocess] compilation error in interprocess vector
From: Andrew Schweitzer (a.schweitzer.grps_at_[hidden])
Date: 2012-03-07 18:18:44


I'm trying to use interprocess' containers. I get compilation errors
when including the container header files. For example:

#include <boost/interprocess/containers/vector.hpp>

gives:

g++ -I../../include -I"/home/schweitz/work/boost/boost_1_49_0" -O3 -Wall
-c -fmessage-length=0 -std=c++0x -MMD -MP
-MF"EmbeddedServiceProcessor.d" -MT"EmbeddedServiceProcessor.d" -o
"EmbeddedServiceProcessor.o" "../EmbeddedServiceProcessor.cpp"
In file included from
/home/schweitz/work/boost/boost_1_49_0/boost/container/detail/iterators.hpp:27:0,
                  from
/home/schweitz/work/boost/boost_1_49_0/boost/container/vector.hpp:38,
                  from
/home/schweitz/work/boost/boost_1_49_0/boost/interprocess/containers/vector.hpp:19,
                  from ../EmbeddedServiceProcessor.cpp:295:
/home/schweitz/work/boost/boost_1_49_0/boost/container/detail/variadic_templates_tools.hpp:44:19:
error: expected nested-name-specifier before ‘add_const_reference’

and so forth. Any suggestions?

this is Ubuntu 11.10, and gcc -v reports:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin
--enable-objc-gc --disable-werror --with-arch-32=i686
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

tx

Andy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net