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)
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple