Boost logo

Boost Users :

Subject: Re: [Boost-users] Problems compiling with Boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-08 14:09:08


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 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