X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64C77393EC2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1589376150; bh=WvXJat0ImU+n0RtJgfjZOqO2JQETImFjSdzszhLjFjc=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xmEvhaLZ88CgHaJODR7vNRnvFUCoPy5ecDb+0+2I8vtvCLa4gv1FJugB1g2GnL/Jc 2jgAiHHXL8Ioa0CMuvz+RYjTeE0yh+K++AsIAsEM25Akt8oOcRmCsp6YOeH8DHbBvl YqPp/s8p2p4u/GJPzbc0aiKaVtmtsl/NKX3JJ+lM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1672D3851C0D 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) Subject: Re: Symbol visibility problems with -std= To: cygwin AT cygwin DOT com References: <CGME20200513102124eucas1p20b619bf7b82b386c66e935199790b2c1 AT eucas1p2 DOT samsung DOT com> <00a001d62910$4120ea20$c362be60$@samsung.com> <fc1d2735-da6e-95de-6c44-e163a94df843 AT gmail DOT com> 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: <fc1d2735-da6e-95de-6c44-e163a94df843@gmail.com> Content-Language: en-GB 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com> List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> List-Archive: <https://cygwin.com/pipermail/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help> List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> From: =?utf-8?q?Csaba_R=C3=A1duly_via_Cygwin?= <cygwin AT cygwin DOT com> Reply-To: =?UTF-8?Q?Csaba_R=c3=a1duly?= <rcsaba AT gmail DOT com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 04DDMu5r022354 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