Re: Status of NCL under MacOS 10.6 (64-bit)

From: Daniel Packman <pack_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 13 2009 - 10:45:08 MST

On Nov 13, 2009, at Nov 13 9:42 AM, Mary Haley wrote:

> You can run "file" on any one of the *.o or executable files, and it
> will say something like this if it is 32-bit:
>
> file error.o
> error.o: Mach-O object i386
>
> and something like this if it is 64-bit:
>
> sheridan[362] file error.o
> error.o: Mach-O 64-bit object x86_64
>
> This doesn't seem to work for the library archive, the "libxxxx.a"
> file.

For a regular archive library (libfoo.a), you can extract an object file
from it:
  ar t libfoo.a # to list the contents of the file
  ar x libfoo.a bar.o # to extract the object file bar.o
  file bar.o # to find the arch of the object

Shared object libraries (libfoo.so) should reveal their
architecture directly from the file command.

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Fri Nov 13 10:45:12 2009

This archive was generated by hypermail 2.1.8 : Tue Nov 17 2009 - 17:30:50 MST