Re: [netcdfgroup] netcdf-4.1.1 build succeeds with hdf5 on OSX 10.6.3 using Xcode 3.2.2 and gfortran-42-5659.pkg

  • To: "Larry Baker" <baker@xxxxxxxx>, "John Helly" <hellyj@xxxxxxxx>
  • Subject: Re: [netcdfgroup] netcdf-4.1.1 build succeeds with hdf5 on OSX 10.6.3 using Xcode 3.2.2 and gfortran-42-5659.pkg
  • From: "Sean McBride" <sean@xxxxxxxxxxxxxxxxxx>
  • Date: Mon, 2 Aug 2010 14:59:27 -0400
On Mon, 2 Aug 2010 10:22:25 -0700, Larry Baker said:

>My recollection using gcc and gfortran on Mac OS X 10.5 (Leopard) is
>that they both default to 32-bit.

gcc's defaults have changed over time.  In 10.5, it builds for 32 bit;
in 10.6 it builds for 64 bit.  This is regardless of the 'bitness' of
the kernel.

In any case, using -m32/-m64 is not customary/correct on OS X.  The
proper thing to do is specify "-arch" and the architecture you want to
build for.  Possible options are: ppc, ppc64, i386, x86_64.

--
____________________________________________________________
Sean McBride, B. Eng                 sean@xxxxxxxxxxxxxxxxxx
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada




  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: