I am trying to compile a program with ifort on a mac intel (os X) and I want to link a library that I have generated:
ifort -Vaxlib -O3 -W0 -arch x86_64 cosmo.o main.f90
-L/Users/alain/ablancha/util/F90 -lmylib90 -o toto
I got the following message:
ld64 warning: in /Users/alain/ablancha/util/F90/libmylib90.a, file is not of required architecture
The library has been obtained by:
ifort -c -u -w -O3 -vec-report0 -arch x86_64 example.f90
ar -cr libmylib90.a *.o
was added in a attempt to solve the problem, but this had no effect. A friend of mine has no problem with the same operation on linux.
Thanks in advance for any suggestion!