本文介绍了在 OS X 上,如何找出共享库是为什么架构编译的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要知道我是为32位还是64位架构编译了libjpeg,但不知道如何查找,有没有命令可以让我检查?
I need to know whether I compiled libjpeg for 32 or 64 bits architecture, but don't know how to find out, is there a command that will let me check?
推荐答案
只需输入 file libjpeg.dylib
就会得到如下输出
just type file libjpeg.dylib
and you'll get output like the following
libpoll.dylib: Mach-O universal binary with 3 architectures
libpoll.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
libpoll.dylib (for architecture i386): Mach-O dynamically linked shared library i386
libpoll.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
这篇关于在 OS X 上,如何找出共享库是为什么架构编译的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!