本文介绍了在OS X上,我怎么找出架构的共享库编译为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道是否我的libjpeg编译为32位或64位架构,但不知道怎么找出来,是有一个命令,让我检查?

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?

推荐答案

只需键入'文件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上,我怎么找出架构的共享库编译为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 16:07