delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Date: | Mon, 4 Nov 2002 15:45:01 -0500 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 1.3.13: problem using ntohs() in asm/bytorder.h in gcc 3.2. |
Message-ID: | <20021104204501.GB4530@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <5 DOT 1 DOT 1 DOT 6 DOT 0 DOT 20021104211313 DOT 01f88058 AT wheresmymailserver DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <5.1.1.6.0.20021104211313.01f88058@wheresmymailserver.com> |
User-Agent: | Mutt/1.5.1i |
On Mon, Nov 04, 2002 at 09:15:59PM +0100, Jens Yllman wrote: >Sorry, most have hade a total melt down. The following code creates the >problem. > >#include <netinet/in.h> > >void test( void ) >{ > short x = ::ntohs( 128 ); >} > >Compiling it with the g++ -O2 returns the following error. Removing -O2 >removes the error. Or as I said before -U__OPTIMIZE__ > >test.cpp: In function `void test()': >test.cpp:5: parse error before `__builtin_constant_p' Get rid of the ::. ntohs is a macro. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |