Symbol visibility problems with -std=
Csaba Ráduly
rcsaba@gmail.com
Wed May 13 13:22:18 GMT 2020
On 13/05/2020 14:12, Marco Atzeri via Cygwin wrote:
> Am 13.05.2020 um 12:21 schrieb Pavel Fedin via Cygwin:
(snip code using strdup)
>> $ g++ test.cpp -o test - compiles OK
>> $ g++ test.cpp -o test -std=c++14 - error: 'strdup' was not declared in this
>> scope; did you mean 'strcmp'?
>>
>
>
> strdup is an extension of C standard
>
> so strictly behaviour of Cgywin is correct, see
>
> /usr/include/sys/features.h
>
> for details
Pavel, you may want to try -std=gnu++14 instead.
Csaba
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
More information about the Cygwin
mailing list