3 ms·
C++ binaries should be doing the same. Externally, speak C ABI. Internally, statically link Rust stdlib or C++ stdlib.
by quotemstr 1y ago
C++ binaries should be doing the same. Externally, speak C ABI. Internally, statically link Rust stdlib or C++ stdlib.
- pjmlp 1y agoOWL, MFC, Qt, VCL, FireMonkey, AppFramework, PowerPlant... Plenty do not, especially on Apple and Microsoft platforms because they always favoured other approaches to bare bones UNIX support on their dynamic linkers, and C++ compilers.
- pjc50 1y agoExporting a C API from a C++ project to consume in another C++ project is really painful. This is how you get COM. (which actually slightly pre-dates C++, I think?)
- Someone 1y ago> This is how you get COM. (which actually slightly pre-dates C++, I think?) No. C++ is from 1985 (https://en.wikipedia.org/wiki/C%2B%2B https://en.wikipedia.org/wiki/C%2B%2B), COM from 1993 (https://en.wikipedia.org/wiki/Component_Object_Model https://en.wikipedia.org/wiki/Component_Object_Model)
- quotemstr 1y agoCOM is actually good though. Or if you want another object system, you can go with GObject, which works fine with Rust, C-+, Python, JavaScript, and tons of other things.