Search code examples
xcodemacoslinkerlapack

Linking with LAPACK library under OS 10.14.3 and Xcode 9.0


I'm trying to compile a simple Fortran code (with gfortran 8.2.2) in which I access some LAPACK routines on OS 10.14.3. Unfortunately, I can no longer link with the Accelerate framework (which used to work fine for a long time). For example,

gfortran -framework Accelerate abc.o def.o -o mycode

now leads to

ld: framework not found Accelerate

I've installed Xcode 9.0 and the developer tools.

It's been a while since I've compiled that code and I've updated the OS, Xcode, and gfortran since then so I cannot trace the problems to a single change. Any ideas?


Solution

  • You need(ed) to install the Command Line Tools.