Targets using implicit extern "C"

Zack Weinberg zack@codesourcery.com
Mon May 9 08:30:00 GMT 2005


Ralf Corsepius <ralf.corsepius@rtems.org> writes:

> FWIW: IMO, NO_IMPLICIT_EXTERN_C actually is an OS/libc feature ("Your
> system headers are c++ aware"), therefore it is hardly possible or
> useful to ever use "#define NO_IMPLICIT_EXTERN_C" on "generic" targets
> (*-elf, *-coff etc.).

I'm going to ask you to think again about that assessment, because
'implicit extern C' mode is actually trouble if the headers *are* C++
aware -- look back through the bug database for cases.  And my
suspicion is that nowadays, the headers that generic targets do have
are more likely to be C++ aware than not.

zw



More information about the Gcc mailing list