Closed modulovalue closed 1 year ago
This is just C++ name mangling over C. Since all of my examples were C++ they used C++ name mangling and worked properly, but you're right they should be exported with C name mangling.
New updates should now export as C instead of C++.
I can confirm that the symbols aren't mangled anymore, thank you again!
I'm trying to invoke the functions declared in dart_dll.h from a dylib.
It looks like the names are mangled and therefore not visible under the name that the header defines.
I can invoke the functions under the mangled name (without one leading underscore e.g.
_Z18DartDll_Initializev
)I've tried extending the macro in dart_dll.h to make these symbols 'visible' under macos:
But that doesn't seem to have any effect i.e. the symbols are still mangled.
I feel like I'm missing something simple here, do you know what it would take to export the actual identifiers that can be found in
dart_dll.h
?