Boost logo

Boost :

Subject: Re: [boost] C++03 / C++11 compatibility question for compiled libraries
From: Peter Dimov (lists_at_[hidden])
Date: 2018-02-12 23:30:22


Gavin Lambert wrote:
> In an ideal world, the linker would compare the *size* of the symbols and
> issue a diagnostic if they don't match, as this is highly suspicious of an
> ODR issue. However I've yet to encounter one in the wild that actually
> does this.

See
https://ci.appveyor.com/project/pdimov/system/build/1.0.97-develop/job/v6b2on2xlv09y7q3#L208
for an example of the Cygwin linker doing that. It's a warning, but better
than nothing.

MinGW too:
https://ci.appveyor.com/project/pdimov/system/build/1.0.97-develop/job/8kum8o9sssfe6q5q#L156


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk