Date: Sat, 13 Jan 2001 18:24:44 +0100 From: Alexander Langer <alex@freebsd.org> To: hackers@freebsd.org Subject: sys/disklabel.h in C++ files Message-ID: <20010113182444.A1799@cichlids.cichlids.com>
next in thread | raw e-mail | index | archive | help
Hi! I have a question: How do you include sys/disklabel.h in C++ files? alex:~ $ cat test.cc #include <sys/disklabel.h> alex:~ $ cat test2.cc extern "C" { #include <sys/disklabel.h> } 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010113182444.A1799>