This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-1.1.1: name mangling and C library header files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]