Well, in C all functions are prepended with an underscore. C++ uses different "name mangling" (honestly!) semantics.

So, in C++ to get the C name use extern "C" function which goes to _function.