I seek to use Cxx.jl to call functions in a C++ library which we usually distribute as a static library, but when I do
Libdl.dlopen(lib_path, Libdl.RTLD_GLOBAL), Cxx prints out the error:
ERROR: LoadError: could not load library "/path/to/lib.a" dlopen(/path/to/lib.a, 9): no suitable image found. Did find: /path/to/lib.a: unknown file type, first eight bytes: 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
However, when I build the library as a dynamic (shared) library, Cxx is happy.
I’m a huge C++ noob so maybe this is a super-stupid question but does Cxx not work with static libraries? This is Julia 0.5.2 and macOS (so Xcode builds the library).