Usually to call C from C++ you just need to extern "C" the prototype:
Code:
extern "C"
{
Error add(int,int);
}
Then the compiler knows not to mangle the name and not to look for a mangled name.