How to use gfortran?

Michael Hirsch's Avatar

Michael Hirsch

11 Oct, 2017 03:47 PM

I want to compile a simple Fortran program with Appveyor: https://github.com/scivision/zakharov.

I feel I'm just missing some basic setting, does anyone have experience with gfortran.exe on Appveyor?

I get error upon cmake .. -G "MinGW Makefiles":

-- The CXX compiler identification is unknown
-- The Fortran compiler identification is unknown
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe -- broken

My appveyor.yml:

environment:
  CC:  C:\msys64\mingw64\bin\gcc.exe
  CXX: C:\msys64\mingw64\bin\g++.exe
  FC:  C:\msys64\mingw64\bin\gfortran.exe

clone_depth: 3

init:  
  - set ORIGPATH=%PATH%

build_script:
  - cd bin

  - set PATH=C:\Program Files (x86)\CMake\bin
  - cmake .. -G "MinGW Makefiles" 

  - set PATH=%OLDPATH%
  - make
  1. Support Staff 1 Posted by Ilya Finkelshte... on 20 Oct, 2017 09:12 PM

    Ilya Finkelshteyn's Avatar
  2. Ilya Finkelshteyn closed this discussion on 20 Oct, 2017 09:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac