From owner-freebsd-hackers Sat Jan 13 9:25:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id 904FD37B400 for ; Sat, 13 Jan 2001 09:24:58 -0800 (PST) Received: from fwd02.sul.t-online.com by mailout05.sul.t-online.com with smtp id 14HUQD-0008Iu-01; Sat, 13 Jan 2001 18:24:57 +0100 Received: from neutron.cichlids.com (520050424122-0001@[62.158.39.108]) by fmrl02.sul.t-online.com with esmtp id 14HUQ4-1SkPh2C; Sat, 13 Jan 2001 18:24:48 +0100 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 79EBFAB0C for ; Sat, 13 Jan 2001 18:26:10 +0100 (CET) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 2547914A8F; Sat, 13 Jan 2001 18:24:45 +0100 (CET) Date: Sat, 13 Jan 2001 18:24:44 +0100 From: Alexander Langer To: hackers@freebsd.org Subject: sys/disklabel.h in C++ files Message-ID: <20010113182444.A1799@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. X-Sender: 520050424122-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I have a question: How do you include sys/disklabel.h in C++ files? alex:~ $ cat test.cc #include alex:~ $ cat test2.cc extern "C" { #include } alex:~ $ make test.o c++ -O -pipe -c test.cc In file included from test.cc:1: /usr/include/sys/disklabel.h:182: `lp' was not declared in this scope /usr/include/sys/disklabel.h:183: syntax error before `*' *** Error code 1 Stop in /usr/home/alex. alex:~ $ make test2.o c++ -O -pipe -c test2.cc In file included from test2.cc:2: /usr/include/sys/disklabel.h:182: `lp' was not declared in this scope /usr/include/sys/disklabel.h:183: syntax error before `*' /usr/include/sys/disklabel.h:188: `lp' was not declared in this scope /usr/include/sys/disklabel.h:189: `lp' was not declared in this scope /usr/include/sys/disklabel.h:189: `lp' was not declared in this scope /usr/include/sys/disklabel.h:190: syntax error before `while' *** Error code 1 Stop in /usr/home/alex. alex:~ $ Is there a gcc option? Or does this just not work? I mean, it worked before PHK made dkcksum() an __inline function. Thanks Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message