Boost logo

Boost Users :

Subject: Re: [Boost-users] [bip] alignment/padding differs
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2017-02-23 22:03:42


On 22/02/2017 11:44, Jan Boehme via Boost-users wrote:
> Hi,
>
> I'm using interprocess to share mem between different processes.
> Unfortunately these processes were built using different compiler
> version (gcc3, gcc4, gcc5) and we're seeing different alignment or
> padding dependent on which run-time was in charge of creating the mapped
> files. Of course we used the same boost version (1.60) while creating
> the binaries.
>
> Obviously ip can't handle these different layouts and mostly runs in
> indefinite loops while traversing an rb-tree not finding the first shm
> object.
>
> Are there any template parameters that enable the code to be accessed
> using different run times through forcing the same layout?

I don't think so. GCC has a flag -fabi-version, but i don't know if it's
useful in your case.

Ion


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