Mz_Chen
Mz_Chen

Reputation: 87

Error when using gfortran on MacOS

I mostly work on linux and have no problems but want to occasionally use a Mac for work. Somehow gfortran does not work there, though. I installed it as instructed but when I try to compile something, this happens:

gfortran -o m_g_matrix2.x m_g_matrix.f90
ld: entry point (start) undefined.  Usually in crt1.o for architecture x86_64
collect2: error: ld returned 1 exit status

I have no idea what this means and google search did not help. Did someone manage to get gfortran to work on Mac?

Thanks for the help!

Upvotes: 0

Views: 473

Answers (1)

JTNelson
JTNelson

Reputation: 26

I installed gcc binaries for yosemite from http://hpc.sourceforge.net and also installed Xcode command-line tools as directed there. gcc contains the gfortran compiler. Seems to work well on macbook air with Yosemite. JTN

Upvotes: 1

Related Questions