Re: what is the use of extern "c"

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

 



On 1/20/2013 10:47 PM, horseriver wrote:

    what is the use of extern c within a declaration?



extern "C" basically shuts off C++ symbol mangling (and facilities which depend on it), so as to facilitate linking with C and with languages such as Fortran which support C interoperability. The definition seems rather loose; we frequently see reference operators used even though their compatibility with C is doubtful.

--
Tim Prince



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux