我有一个第三方给我提供了已经编译好的共享库文件.so
。
就像这样:
file securitymduserapi.so
securitymduserapi.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
但是当我尝试使用otool
来显示更多信息时,出现了以下错误:
otool -L securitymduserapi.so
securitymduserapi.so: is not an object file
能否在macOS中链接linux编译的.so共享库?
Mac OS版本:10.10.3
我仍然困惑于linux架构和mac的兼容性,如果我在linux中创建了一个共享库,我能否在mac os中尝试使用这个共享库?