[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apropos linking `dselect'

> In message <m0tzdsn-00063cC@mongo.pixar.com>, Bruce Perens writes:
> >Is it the responsibility of C headers to say "I am not C++", or is it
> >the responsibility of C++ programs to properly declare that they
> >are importing headers from the C universe?
> I'm not sure how the _responsibility_ could rest on anything other
> than the C++ program, but it's common politeness for the C headers to
> take care of it.

I think you'll be hard-pressed to find an ANSI-standard C compiler that
accepts extern "C" { ... }.  This syntax was added to C++ so that it could
interface with older languages that don't decorate their identifiers with
type information.

Bill Roman  (roman@songdog.eskimo.com / roman@songdog.uucp)   running linux

Reply to: