This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
1.3.13: problem using ntohs() in asm/bytorder.h in gcc 3.2.
- From: Jens Yllman <jens at yllman dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 04 Nov 2002 21:05:55 +0100
- Subject: 1.3.13: problem using ntohs() in asm/bytorder.h in gcc 3.2.
Hi.
To reproduce the problem. Write a file.cpp file and include #include
<netdb.h>. Also write a function using
::ntohl()/::ntohs()/::htonl()/::htons(). Then compile it with g++ -g -O2 -c
file.cpp.
This will give you an error saying __builtin_constant_p() does not exsist,
or something like that.
I guess this also exsist when you do normal C compilation.
CYGWIN_NT-5.0 xxx 1.3.14(0.62/3/2) 2002-10-24 10:48 i686 unknown
I've a workaround that do -U__OPTIMIZE__ when I compile. But I would like
it to compile 'out of the box'. I guess removing -O2 would also remove this
problem. But I've not tried.
Hope this explains more.
Jens Yllman (firstname at lastname dot com)
BTW: Sorry for the extra e-mails. I pressed the wrong button.
Attachment:
cygcheck.out
Description: Text document
--
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/