Hello,

I use boost 1.38.
I try to compile my program that includes

<boost/thread.hpp>
<boost/interprocess/sync/named_recursive_mutex.hpp>

I didn't have any problem to compile boost libraries. But when I compile my program, I've got the following error :



In file included from /usr/include/boost-1_38/boost/interprocess/detail/move.hpp:21,
                 from /usr/include/boost-1_38/boost/interprocess/shared_memory_object.hpp:18,
                 from /usr/include/boost-1_38/boost/interprocess/sync/named_recursive_mutex.hpp:23,
                 from /home/Dev/Criteria4/WebTools/WebModules/src/Noyau/cemTask.h:27,
                 from /home/Dev/Criteria4/WebTools/WebModules/src/CriEm/cemAppWebSrv.h:28,
                 from /home/Dev/Criteria4/WebTools/WebModules/src/CriEm/cemAppWebSrv.cpp:19:
/usr/include/boost-1_38/boost/interprocess/detail/mpl.hpp:64: attention : all
   member functions in class `boost::interprocess::detail::is_convertible<T, U>
   ' are private
In file included from /usr/include/boost-1_38/boost/interprocess/shared_memory_object.hpp:31,
                 from /usr/include/boost-1_38/boost/interprocess/sync/named_recursive_mutex.hpp:23,
                 from /home/Dev/Criteria4/WebTools/WebModules/src/Noyau/cemTask.h:27,
                 from /home/Dev/Criteria4/WebTools/WebModules/src/CriEm/cemAppWebSrv.h:28,
                 from /home/Dev/Criteria4/WebTools/WebModules/src/CriEm/cemAppWebSrv.cpp:19:
/usr/include/sys/mman.h:145: error: type specifier omitted for parameter `
   mode_t'
/usr/include/sys/mman.h:145: error: erreur d'analyse syntaxique before `)'
   token

/usr/include/boost-1_38/boost/interprocess/sync/emulation/named_creation_functor.hpp:38:
embrouillÚ par les erreurs prÚcÚdentes, abandon
make[1]: ***
[/home/Dev/Criteria4/WebTools/WebModules/UseIT/bin/objCriemWeb/cemAppWebSrv.o]
Erreur 1

I understand that mode_t is an undefined type. But as mman.h is a standard include file, I don't understand why.
Can somebody gives me a help ?
I surely forget something important but I don't know what.
For informations, I use GCC 3.3.3.

Thanks for yours answers


Laurence