[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bits/in.h, C++ and the Hurd
From: |
Marcus Brinkmann |
Subject: |
bits/in.h, C++ and the Hurd |
Date: |
Mon, 3 Dec 2001 00:43:42 +0100 |
User-agent: |
Mutt/1.3.18i |
Hi,
the bits/in.h version used on the Hurd triggers a compilation failure
when included from a C++ program with g++:
g++ -O2 -g -I/usr/include `gnome-config --cflags gnomeui` -D VERSION=\".30\"
-c DICTClient.cc
In file included from /usr/include/netinet/in.h:250,
from DICTClient.cc:39:
/usr/include/bits/in.h:54: ANSI C++ forbids data member `ip_opts' with same
name as enclosing class
This is the relevant part of the file bits/in.h:
struct ip_opts
{
struct in_addr ip_dst; /* First hop; zero without source route. */
char ip_opts[40]; /* Actually variable in size. */
};
This was detected when compiling gaspell.
Thanks,
Marcus
- bits/in.h, C++ and the Hurd,
Marcus Brinkmann <=