From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 1672D3851C0D for ; Wed, 13 May 2020 13:22:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1672D3851C0D Received: by mail-wr1-x429.google.com with SMTP id s8so20886160wrt.9 for ; Wed, 13 May 2020 06:22:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ornSYaQvV/lMh5HSF8PaWQC6VqJKZoXf0d4QEebaCXc=; b=CgQKavs+3tkY2oapeB4HR7Ub9L+GCGLVmT+rvJdLe2U00h49mSFgvVoFRddv0Jwl8G gEyLz2iq/Zr3EXDLkYVjJ71T/vBv7RtMhHY+G4fRm1RFoqzp46y9W+VP3p0WMv5zo1nB 70e+igRi0JqoQOjwO7kSc0WzCHHB6aaoEoPh/ImwRjonV71cfMdXo2UVQivBR29F24pV yc3fHZye4MZop2MHiCNkW7LBHJ5nFt6OhTVBEbQld3jwmEiwxJwgrl8yQGRKPniiwFfx kaWjImRuGORn+KoQPhrOdI2WbDrB/0/a0+HeBRlU+oiaB8LC0f7k9+LynltuljlgMtLT taYQ== X-Gm-Message-State: AGi0PuaktlwDEs1yCYTrOcgXWrSJzXK7Lv0C2/bzdUcstxFUGKFI3xvQ JA+5u0T1eC/VMofwXEIvf6sUoevsCSg= X-Google-Smtp-Source: APiQypKLFzdSJDFUOfZpqhOeGkoP7k/7+CPK3S4mQhxeSRwNhiktmPYYR3rnKy8IEq/ZUGuAFcSQEw== X-Received: by 2002:adf:d4ce:: with SMTP id w14mr29692733wrk.232.1589376146929; Wed, 13 May 2020 06:22:26 -0700 (PDT) Received: from ?IPv6:2a01:36d:111:c317:fcf4:d9ee:d3e0:7220? (2a01-036d-0111-c317-fcf4-d9ee-d3e0-7220.pool6.digikabel.hu. [2a01:36d:111:c317:fcf4:d9ee:d3e0:7220]) by smtp.gmail.com with ESMTPSA id q5sm21148999wra.36.2020.05.13.06.22.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2020 06:22:26 -0700 (PDT) Subject: Re: Symbol visibility problems with -std= To: cygwin@cygwin.com References: <00a001d62910$4120ea20$c362be60$@samsung.com> From: =?UTF-8?Q?Csaba_R=c3=a1duly?= Message-ID: <7265afcc-6d95-b931-2568-ae879e1a1094@gmail.com> Date: Wed, 13 May 2020 15:22:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2020 13:22:29 -0000 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)