This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs-1.1.1: name mangling and C library header files
- To: gcc at gcc dot gnu dot org
- Subject: egcs-1.1.1: name mangling and C library header files
- From: "Broadey, Kevin M" <kevin dot broadey at eds dot com>
- Date: Tue, 27 Jul 1999 16:05:11 +0100
I'm running egcs-1.1.1 on an RS/6000 under AIX 4.2.1.
I have a C++ program that #includes <sys/msg.h> and calls the "msgget"
function. And it works!
This is surprising because /usr/include/sys/msg.h doesn't contain any
'extern "C"' directives, but the code links quite happily against the C
library.
Something within g++ must be deciding that sys/msg.h is a "C" header file
and implicitly making all the function 'extern "C"'. An I right about this?
How do I find out which files are considered to be "C" header files?
--
Kevin Broadey