Subject: System includes C++ safe?
To: None <firstname.lastname@example.org>
From: James Chacon <email@example.com>
Date: 12/24/2003 01:03:42
See PR#20421, share/mk/bsd.prog.mk rev 1.175 and GCC bug 7327 for some
Basically doing this:
cat > /tmp/test.cpp <<EOF
g++ -c -nostdinc++ -isystem /usr/include/g++ /tmp/test.cpp
Will blow up with lots of errors about templates inside of traditional C
Turns out this is due to NetBSD hosts not defining NO_IMPLICIT_EXTERN_C
in the gcc config.
Since we don't use fixincludes and otherwise assume our headers are fine, is
there any reason not to define this? i.e. everything is wrapped in
BEGIN_DECLS (or should be) which DTRT for c++ vs non-c++ code.