user2909985
user2909985

Reputation: 11

Can't link .o file on terminal ( Mac OS X 10.9), error : ld: library not found for -lcrt1.10.6.o

I updated my os to mac os X 10.9 this morning, after that the error pops out when I was trying to use the following code to compile and execute my .f90 file in the TERMINAL.

ifort -o test test.f90

Anyone knows how to resolve this problem? Thanks a lot !!!!

Changjun

Upvotes: 1

Views: 1859

Answers (2)

Joakim Edsjö
Joakim Edsjö

Reputation: 31

I had the same issue until I reinstalled Xcode's command line tools. Either do it from the preferences in Xcode or from the terminal with this command: xcode-select --install

Upvotes: 3

myki
myki

Reputation: 763

Just install gcc from your terminal:

$ brew install gcc49

If the brew command isn't recognized, you have to install Homebrew first.

Upvotes: 0

Related Questions