mod, file was built for unsupported file format which is not the architecture linked

Joined
Oct 8, 2010
Messages
1
Reaction score
0
Points
1
Hi,

I am using gfortran 4.6.0 on 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 as I could not find anything about this problem so far on the Internet.

With kind regards

Lars
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top