3 ms·
> C++ has standardized ABIs No, it has not, at least not as part of the C++ standard. > but you just don't see people dynamically loading a C++ shared object,
by spacechild1 4y ago
> C++ has standardized ABIs
No, it has not, at least not as part of the C++ standard.
> but you just don't see people dynamically loading a C++ shared object, obtaining a pointer to a C++ object and calling its member functions
We certainly do, but we have to make sure the ABIs match each other - unless we use COM-style interfaces.
- matheusmoreira 4y ago> No, it has not, at least not as part of the C++ standard. The implementations seem to have converged on a de facto standard ABI. https://itanium-cxx-abi.github.io/cxx-abi/abi.html https://itanium-cxx-abi.github.io/cxx-abi/abi.html > we have to make sure the ABIs match each other Which essentially boils down to ensuring everybody is using the exact same compiler, sometimes the same compiler version even. > unless we use COM-style interfaces These aren't C++ ABIs though.
- spacechild1 4y ago> The implementations seem to have converged on a de facto standard ABI. Except for Windows. And probably a few other platforms.