1

I tried to compile my code in Fortran by Visual Studio. I coded an easy example.

program fortran
    implicit none
    character*20 :: name
    print*,"what is your name"
    read *, name
    print *,"Hello ", name
end program fortran

But it can't execute on my Mac terminal. The error message is: '

ld: library not found for -lSystem
collect2: error: ld returned 1 exit status

I also noticed that on my right bottom corner of VS, it shows the active environment is not selected. I guess maybe it is related to the issue? Plus, I also downloaded the intelapi toolkit.

So what should I do now?

Yao Xu
  • 11
  • 1

0 Answers0