Boost logo

Boost Users :

Subject: Re: [Boost-users] Problems compiling with Boost
From: Carla Strembicke (Carla.Strembicke_at_[hidden])
Date: 2010-02-08 14:25:41


Yes I do.

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;

-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:09 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Problems compiling with Boost

AMDG

Carla Strembicke wrote:
> I am currently implementing some interprocess functionality into my program which must reside on both a windows and linux operating system.
> I have completed the windows integration ( this is where the code originally resided) and am now moving it to the linux platform : Debian 4.1.1-21
> --
> I have created my makefile and am using gcc version 4.1.2. I get the following output on my make and cannot figure out how to fix this issue:
>
> GNU C++ version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) (i486-linux-gnu)
> compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).
> GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129583
> Compiler executable checksum: 183d42a838ed2b7313bffcb8f2f2fda7
> /usr/include/sys/mman.h:141: error: reference to 'mode_t' is ambiguous
> /usr/include/sys/types.h:72: error: candidates are: typedef __mode_t mode_t
> /usr/local/boost_1_41_0/boost/interprocess/detail/os_file_functions.hpp:317: error: typedef enum boost::interprocess::mode_t boost::interprocess::mode_t
> /usr/include/sys/mman.h:141: error: reference to 'mode_t' is ambiguous
> /usr/include/sys/types.h:72: error: candidates are: typedef __mode_t mode_t
> /usr/local/boost_1_41_0/boost/interprocess/detail/os_file_functions.hpp:317: error: typedef enum boost::interprocess::mode_t boost::interprocess::mode_t
> /usr/include/sys/mman.h:141: error: 'mode_t' has not been declared
> Common/Src/shmem.cpp: In member function 'void CShDBStorage::Close()':
> Common/Src/shmem.cpp:443: warning: statement has no effect
> Common/Src/shmem.cpp:452: warning: unused variable 'hdr'
> make: *** [Common/Src/shmem.o] Error 1
>
> I found a thread regarding this issue on the internet but did not see a solution.
> http://lists.boost.org/boost-users/2009/06/49236.php
>
> Can anybody help?
>

Do you have using namespace boost::interprocess; somewhere by any chance?

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