Boost logo

Boost Users :

Subject: Re: [Boost-users] [interprocess]Error compiling my program with boost and GCC
From: Laurence Chambenois (lchambenois_at_[hidden])
Date: 2009-06-12 02:59:50


Steven Watanabe a écrit :
> AMDG
>
> Laurence Chambenois wrote:
>> 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 :
>>
>> <snip>
>> */usr/include/sys/mman.h:145: error: type specifier omitted for
>> parameter `
>> mode_t'
>>
>> 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
>
> What operating system are you using?
> Do interprocess' tests pass?
> You can check by running bjam in
> $BOOST_ROOT/libs/interprocess/test
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Thank you for your answer.

The operating system is a

    * Linux with a kernel release : 2.6.20
    * Glibc : 2.3.2
    * gcc : 3.3.3

The interprocess tests does not pass. I did what you tell me and I have
plenty of errors during compilation.
The problem is that I could test this on another system, but my program
has to run on the system I've mentionned.

Is it a problem with Glibc ? or GCC ?
Do I have to upgrade them ?

Laurence



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