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/
- 1.3.13: problem using ntohs() in asm/bytorder.h in gcc ... Jens Yllman
- RE: 1.3.13: problem using ntohs() in asm/bytorder.... Harig, Mark A.
- 1.3.13: problem using ntohs() in asm/bytorder.h in... Jens Yllman
- Re: 1.3.13: problem using ntohs() in asm/bytorder.... Jens Yllman
- Re: 1.3.13: problem using ntohs() in asm/bytor... Christopher Faylor
- Re: 1.3.13: problem using ntohs() in asm/bytorder.... Jens Yllman
- Re: 1.3.13: problem using ntohs() in asm/bytorder.... Jens Yllman
- Re: 1.3.13: problem using ntohs() in asm/bytor... Shankar Unni