Skip to main content
greg_t
Associate III
August 6, 2011
Question

C Plus Plus

  • August 6, 2011
  • 2 replies
  • 818 views
Posted on August 06, 2011 at 09:11

&sharpifdef __cplusplus

extern ''C'' {

&sharpendif

I've seen the above in all the library header files , but what does it mean?

#mix-c-and-c++
    This topic has been closed for replies.

    2 replies

    donald2
    Associate
    August 6, 2011
    Posted on August 06, 2011 at 13:21

    It allows the header file to be used with either 'C' or C++ compilers.  You can ignore it.

    Andrew Neil
    Super User
    August 6, 2011
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.