Suppose I have a dylib (not written by me) that exports a function "Foo". If I declare it as
extern "C" void Foo(void);
and try to call it, I get a linker error saying that _Foo
is missing. How can I deal with this without modifying the dylib? Maybe some obscure linker flag, or Clang markup on the declaration, to make it not expect the underscore?