How do you link a C++ program to C functions?
By admin on Jan 17, 2007 in C++ Interview Questions, Technical
By using the extern “C” linkage specification around the C function declarations.
Programmers should know about mangled function names and type-safe linkages. Then they should explain how the extern “C” linkage specification statement turns that feature off during compilation so that the linker properly links function calls to C functions.


