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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message