No, this is ignored, the problem is related to the name mangling (function assignment for the binding phase). So the trick is to define a C function and use your static C ++ method as a stub to call it, for example:
struct S { static void foo(); }; extern "C" void S_foo_impl(); void S::foo() { S_foo_impl(); } auto main() -> int { S::foo(); }
Of course, S_foo_impl must be defined in the external module C.
Jean-baptiste yunรจs
source share