| 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 |
| Message-Id: | <5.1.1.6.0.20021104211313.01f88058@wheresmymailserver.com> |
| X-Sender: | (Unverified) |
| Date: | Mon, 04 Nov 2002 21:15:59 +0100 |
| To: | cygwin AT cygwin DOT com |
| From: | Jens Yllman <x AT xtr DOT org> |
| Subject: | RE: 1.3.13: problem using ntohs() in asm/bytorder.h in gcc 3.2. |
| Mime-Version: | 1.0 |
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'
Jens Yllman (firstname at lastname dot com)
--
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 |