delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:message-id:in-reply-to:references | |
:subject:mime-version:content-type:content-transfer-encoding; q= | |
dns; s=default; b=bSpDrioZ0ZHP2VlGBg/OwDn4Py/BSyoHDNNFpQvGGCQIQE | |
wEIo9pJCZgv3ej7jDtPCZDHb2B8fT74Xmvt8SstfrMzJ6k3LK+8uFwsubvhX7N2U | |
ca8gKpJMmpaOBFKkPVvD3sJCsTJhbYA32H2RzU+UCGhPkyuT3pZWXykBPKLcE= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:message-id:in-reply-to:references | |
:subject:mime-version:content-type:content-transfer-encoding; s= | |
default; bh=oqukwxiR+GXxK8HSQlCnU0hEgxw=; b=yy5sP2JPJjAi1ALKxb0G | |
x8apukNOJ5u0Fb+DmNudrQtx6nWfe2KdiPfsZnCPWyAk4qRE6hJiqznBB4UlHYMD | |
PkgdGOlBuJKcdMsk9ryibX0IXMQSOSN7MStbgf9sa3t0dnpG5ZA5lgv0mtBdPaSY | |
24dCyRIZpMRwisXmCOpfLcw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=1.9 required=5.0 tests=BAYES_50,FREEMAIL_FROM,URI_HEX autolearn=no version=3.3.2 |
X-HELO: | sam.nabble.com |
Date: | Wed, 12 Mar 2014 12:12:13 -0700 (PDT) |
From: | zosrothko <zosrothko AT orange DOT fr> |
To: | cygwin AT cygwin DOT com |
Message-ID: | <1394651533625-107069.post@n5.nabble.com> |
In-Reply-To: | <CAJygYd2TZkAnOFf67TEuQd0_V9Sgz8ZaZwVrVH6tusxRni-r3A@mail.gmail.com> |
References: | <CAJygYd3KQEhdFBAYO4ONumf=FMvjH1fuiqa4b2F0XGLPBNv2Hw AT mail DOT gmail DOT com> <528159F8 DOT 2070307 AT gmail DOT com> <CAJygYd2H7tyjE73=EK2hdo2ZPvWtziU8sUkbgbo5crBtP3JRHQ AT mail DOT gmail DOT com> <CAJygYd2UqXD3e-iguMUB1FUNDmCVmC5D7b1=zHqMVs1kJ8-+qw AT mail DOT gmail DOT com> <5281F8D4 DOT 4090809 AT gmail DOT com> <CAJygYd2TZkAnOFf67TEuQd0_V9Sgz8ZaZwVrVH6tusxRni-r3A AT mail DOT gmail DOT com> |
Subject: | Re: C++11 program link failure under GCC 4.8.2-1 |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Hi Below are the compile time __STRICT_ANSI__ defines for various standards supported by g++ FrancisANDRE AT idefix /usr/include $ gcc -xc++ -std=c++0x -dM -E - < /dev/null | grep ANSI #define __STRICT_ANSI__ 1 FrancisANDRE AT idefix /usr/include $ gcc -xc++ -std=c++11 -dM -E - < /dev/null | grep ANSI #define __STRICT_ANSI__ 1 FrancisANDRE AT idefix /usr/include $ gcc -xc++ -std=gnu++11 -dM -E - < /dev/null | grep ANSI FrancisANDRE AT idefix /usr/include $ gcc -xc++ -std=c++98 -dM -E - < /dev/null | grep ANSI #define __STRICT_ANSI__ 1 All but c++11 define __STRICT_ANSI__. That's why your sample does not compile. This a issue with the cygwin includes that should provide snprintf for c++11 also not only for other standards. -- View this message in context: http://cygwin.1069669.n5.nabble.com/C-11-program-link-failure-under-GCC-4-8-2-1-tp104247p107069.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |