$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Problems compiling with Boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-08 14:56:31
AMDG
Carla Strembicke wrote:
> I have it in my header file (Common/Src/shmem.h) where I declare an boost interprocess object.
>
>
> #include <boost/interprocess/shared_memory_object.hpp>
> #include <boost/interprocess/mapped_region.hpp>
> #include <boost/interprocess/file_mapping.hpp>
> using namespace boost::interprocess;
>
That's probably your problem. It's generally a bad idea to
put using directives in header files. If you don't want to
type out boost::interprocess:: everywhere, use a namespace alias.
In Christ,
Steven Watanabe