Boost logo

Boost :

Subject: Re: [boost] [visibility][test][osx] visibility warnings with 1.70beta
From: Raffi Enficiaud (raffi.enficiaud_at_[hidden])
Date: 2019-03-27 20:19:44


On 27.03.19 20:35, Peter Dimov via Boost wrote:
> Raffi Enficiaud wrote:
>> [snip]
>
> Looking at
>
> https://github.com/boostorg/test/blob/develop/include/boost/test/utils/basic_cstring/basic_cstring.hpp#L170-L176
>
>
> template<typename CharT>
> inline typename basic_cstring<CharT>::pointer
> basic_cstring<CharT>::null_str()
> {
>    static CharT null = 0;
>    return &null;
> }
>
> there's no BOOST_SYMBOL_VISIBLE there, so `null` is indeed different in
> the library (with hidden visibility) and in the application (with
> default visibility). Perhaps that's what the linker complains about.
>
> I'm not sure what the right fix here is though.

Oh right, that should be that and there were other symbols like this
that I had to fix.

I'll give it a shot tonight.

Thanks!
Raffi


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