Boost logo

Boost Users :

Subject: Re: [Boost-users] mixing c++98 with c++11
From: Michael Chisholm (chisholm_at_[hidden])
Date: 2013-12-06 18:11:15


On 12/6/2013 5:53 PM, Chris Stankevitz wrote:
> Hello,
>
> Please consider the following:
>
> application A depends on boost compiled libraries
> application A depends on library B
> library B depends on boost compiled libraries
>
> Q1: Will I have a problem if:
> application A is compiled with gcc c++11
> library B is compiled with gcc c++98
> boost compiled with gcc c++98
>
> Q2: Will I have a problem if:
> application A is compiled with gcc c++11
> library B is compiled with gcc c++11
> boost compiled with gcc c++98
>
> My concern is that boost produces different code in its headers based
> on whether or not the compiler supports c++11.
>
> Thank you,
>
> Chris

The headers are supposed to tell you what symbols are exported from the
binary (among other things). If you change the headers without changing
the binary, those won't match up, and I think you're liable to have link
errors.

imho,
Andy


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