This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: ld: mod, file was built for unsupported file format which is not the architecture being linked (x86_64)
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Lars Beuth <lars dot beuth at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 8 Oct 2010 13:37:32 -0700
- Subject: Re: ld: mod, file was built for unsupported file format which is not the architecture being linked (x86_64)
- References: <AANLkTikAzB4=4_C1zLYs92HaH_mp9o1+d681r8AD-Koo@mail.gmail.com>
On Fri, Oct 08, 2010 at 09:37:48PM +0200, Lars Beuth wrote:
>
> I am using gfortran 4.6.0 on Mac Snow Leopard 64-bit to compile some
> Fortran code that I wrote. The module and object files are generated
> but when linking the application ld gives the following error message:
>
> ld: in xxxx.mod, file was build for unsupported file format which is
> not the architecture being linked (x86_64)
>
> I am using the flag -m64 for compilation, so I guess gfortran should
> generate mod-files for 64-bit (?).
>
> I would greatly appreciate your help with this question.
>
Show your actually command lines. xxxx.mod files are
not given to ld. Something is strange, here.
--
Steve