What is the effect of extern “C” in C++?
What exactly does putting extern “C” into C++ code do? For example: extern “C” { void foo(); } 1 16 extern “C” makes a function-name in C++ have C linkage (compiler does not mangle the name) so that client C code can link to (use) your function using a C compatible header file that contains … Read more