cancel
Showing results for 
Search instead for 
Did you mean: 

C Plus Plus

greg_t
Associate II
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 discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
donald2
Associate II
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.

Posted on August 06, 2011 at 20:00

http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html#faq-32.2

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.