C++ namemangling.
#ifdef __cplusplus extern "C" { #endif /* Put your prototypes here */ int foo(int arg1, int arg2); #ifdef __cplusplus } #endif