From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19959 invoked by alias); 12 Mar 2014 19:12:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19948 invoked by uid 89); 12 Mar 2014 19:12:17 -0000 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 Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 12 Mar 2014 19:12:15 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WNoZZ-0006yv-Kp for cygwin@cygwin.com; Wed, 12 Mar 2014 12:12:13 -0700 Date: Wed, 12 Mar 2014 21:05:00 -0000 From: zosrothko To: cygwin@cygwin.com Message-ID: <1394651533625-107069.post@n5.nabble.com> In-Reply-To: References: <528159F8.2070307@gmail.com> <5281F8D4.4090809@gmail.com> Subject: Re: C++11 program link failure under GCC 4.8.2-1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00216.txt.bz2 Hi Below are the compile time __STRICT_ANSI__ defines for various standards supported by g++ FrancisANDRE@idefix /usr/include $ gcc -xc++ -std=c++0x -dM -E - < /dev/null | grep ANSI #define __STRICT_ANSI__ 1 FrancisANDRE@idefix /usr/include $ gcc -xc++ -std=c++11 -dM -E - < /dev/null | grep ANSI #define __STRICT_ANSI__ 1 FrancisANDRE@idefix /usr/include $ gcc -xc++ -std=gnu++11 -dM -E - < /dev/null | grep ANSI FrancisANDRE@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