| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Date: | Mon, 29 Aug 2011 15:55:21 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: v*printf functions not available with g++ -std=c++0x |
| Message-ID: | <20110829135521.GB31869@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <4E4BD899 DOT 4070409 AT cs DOT utoronto DOT ca> <20110818143329 DOT GQ27614 AT calimero DOT vinschen DOT de> <4E59B7AA DOT 5000402 AT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <4E59B7AA.5000402@gmail.com> |
| User-Agent: | Mutt/1.5.21 (2010-09-15) |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Aug 28 04:36, Dave Korn wrote: > On 18/08/2011 15:33, Corinna Vinschen wrote: > > > If I try that with Yaakov's 4.5.3 cross compilers, then __STRICT_ANSI__ > > is not defined with -std=c__0x, unless I also specify `-ansi' on the > > command line. However, there's a weird warning: > > > > $ i686-pc-cygwin-g++ -std=c++0x -dM -E - < /dev/null | grep ANSI > > cc1: warning: command line option "-std=c++0x" is valid for C++/ObjC++ but not for C > > > > Well, sure, that's why I called g++, not gcc... > > Ah, but without a file extension, it doesn't know what language you're > feeding it; for some reason -std doesn't imply -x. Compare: > > > $ g++-4 -std=c++0x -dM -E - < /dev/null | grep ANSI > > cc1: warning: command line option "-std=c++0x" is valid for C++/ObjC++ but not f > > or C > > > > $ g++-4 -std=c++0x -x c++ -dM -E - < /dev/null | grep ANSI > > #define __STRICT_ANSI__ 1 Uh, thanks. I didn't even know the -x flag. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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 |