3 ms·
C++ names decoration is a problem. no_mangle refers to Rust (i.e. it's useful for calling Rust code from other languages). Rust has no control over C++ names ma
by shmerl 11y ago
C++ names decoration is a problem. no_mangle refers to Rust (i.e. it's useful for calling Rust code from other languages). Rust has no control over C++ names mangling.
- archimedespi 11y agoOkay, sorry, read your original comment backwards. Calling into C++ is generally a big problem in any programming language though, and for most, you have to write a C wrapper.
- Lofkin 11y agoNot a problem for Julia: https://github.com/Keno/Cxx.jl https://github.com/Keno/Cxx.jl
- reubenmorais 11y agoLooks like that uses Clang/LLVM. Does it work with C++ libraries built with GCC or MSVC?
- ihnorton 11y agoMSVC: probably not; Clang's MSVC ABI support is coming along well, but last time I checked there was no COFF support in the JIT. GCC on Itanium ABI platforms should be fine, although mixing C++ stdlib versions would be risky (primarily an issue on OS X).