2 Kommentare

  • Great explanation. I have one recurring issue. There are no binaries in my Fortran Project Folder. This has given me a hard time and I don’t know what to do.

    Here’s the error I get when building the project:

    „16:33:32 **** Build of configuration Debug for project HelloWorld ****
    make all
    Building file: ../hello.f77
    Invoking: GNU Fortran Compiler
    /usr/local/bin/gfortran -funderscoring -O0 -g -Wall -c -fmessage-length=0 -o „hello.o“ „../hello.f77“
    gfortran: warning: ../hello.f77: linker input file unused because linking not done
    Finished building: ../hello.f77

    Building target: HelloWorld
    Invoking: MacOS X Fortran Linker
    /usr/local/bin/gfortran -o „HelloWorld“ ./hello.o
    ld: file not found: ./hello.o
    collect2: error: ld returned 1 exit status
    make: *** [HelloWorld] Error 1
    „make all“ terminated with exit code 2. Build might be incomplete.

    16:33:33 Build Failed. 2 errors, 0 warnings. (took 1s.548ms)“

    • That can have many reasons.

      Did you rename your project lately? That could cause the problem.

      But it can also be a toolchain issue. Try the following. With a similar problem one of these worked for me:

      • update and/or reinstall gcc/gfortran via Homebrew or MacPorts
      • reinstall xcode command line tools (fixed my problem)

      Good luck, Hani

Kommentar hinterlassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert