Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 1998 01:49:11 -0800 (PST)
From:      Alex Zepeda <garbanzo@hooked.net>
To:        current <current@FreeBSD.ORG>
Subject:   egcs chokes on netinet/in.h..
Message-ID:  <Pine.BSF.4.05.9812310146490.42452-100000@zippy.dyn.ml.org>

next in thread | raw e-mail | index | archive | help
/usr/include/netinet/in.h:291: ANSI C++ forbids data member `ip_opts' with
same name as enclosing class

In upgrading my egcs (to get around some rather annoying bugs), this seems
to have been changed from a warning to a fatal error.  Is there any
possibility that the ip_opts member could be named _ip_opts or somesuch?

struct ip_opts {
        struct  in_addr ip_dst;         /* first hop, 0 w/o src rt */
        char    ip_opts[40];           /* actually variable in size */
};

- alex


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9812310146490.42452-100000>