Boost logo

Boost Users :

Subject: Re: [Boost-users] Problems compiling with Boost
From: Carla Strembicke (Carla.Strembicke_at_[hidden])
Date: 2010-02-08 16:11:04


Thank you.
That fixed the issue.
Apparently windows compiler doesn't mind the namespace in the header file but the GNU compiler, not so much.

Cheers
Carla

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Steven Watanabe
Sent: February-08-10 12:57 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Problems compiling with Boost

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

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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