public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jens Yllman <x@xtr.org>
To: cygwin@cygwin.com
Subject: RE: 1.3.13: problem using ntohs() in asm/bytorder.h in gcc 3.2.
Date: Mon, 04 Nov 2002 12:16:00 -0000	[thread overview]
Message-ID: <5.1.1.6.0.20021104211313.01f88058@wheresmymailserver.com> (raw)

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/

             reply	other threads:[~2002-11-04 20:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-04 12:16 Jens Yllman [this message]
2002-11-04 12:43 ` Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2002-11-04 13:12 Jens Yllman
2002-11-04 15:48 ` Shankar Unni
2002-11-04 12:49 Jens Yllman
2002-11-04 13:04 ` Max Bowsher
2002-11-04 12:05 Jens Yllman
2002-11-04 12:00 Harig, Mark A.
2002-11-04 11:58 Jens Yllman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.1.6.0.20021104211313.01f88058@wheresmymailserver.com \
    --to=x@xtr.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).