Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 1999 18:10:02 -0700 (PDT)
From:      "Justin T. Gibbs" <gibbs@caspian.plutotech.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13383 sys/netinet/in.h violates C++ spec. 
Message-ID:  <199910080110.SAA80204@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13383; it has been noted by GNATS.

From: "Justin T. Gibbs" <gibbs@caspian.plutotech.com>
To: Jacques Vidrine <n@nectar.com>
Cc: gibbs@plutotech.com, freebsd-gnats-submit@freebsd.org
Subject: Re: bin/13383 sys/netinet/in.h violates C++ spec. 
Date: Thu, 07 Oct 1999 19:07:18 -0600

 >Ah ha!
 >
 >Change "foo.h" to <foo.h> and use ``g++ -I$PWD [...]'' -- the
 >compilation will complete successfully and without warnings.
 
 This doesn't tell the whole story.  Look at this:
 
 [waterboy::libmci]$ make Mothership.o
 /build/gibbs/local/bin/g++  -O -pipe -I/usr/local/tcltk/include -I. -I../include
  -I../../../src/sys -pipe -DPOOLING_ENABLED -I../../include -I../../include/expo
 rted -g -Wall -DDEBUG=0 -c Mothership.cc -o Mothership.o
 In file included from Mothership.cc:19:
 ../../../src/sys/netinet/in.h:291: ANSI C++ forbids data member `ip_opts' with s
 ame name as enclosing class
 *** Error code 1
 
 Stop.
 [waterboy::libmci]$ grep netinet Mothership.cc
 #include <netinet/in.h>
 #include <netinet/tcp.h> 
 
 This was the original case of the error that caused me to report it.
 
 --
 Justin
 
 


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910080110.SAA80204>