Subject: re: System includes C++ safe?
To: James Chacon <email@example.com>
From: matthew green <firstname.lastname@example.org>
Date: 12/26/2003 16:17:18
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.