Instructions for Compiling FAST

Many thanks for your suggestions. I decided to go back to see if I can compile the pure FORTRAN version of FAST v7 with gfortran and the BLADEDLLInterface.f90 included. Since BLADEDLLInterface.f90 is highly dependent on the Intel FORTRAN compiler I looked through the forum and found this post:

which has a gfortran working BLADEDLLInterface.f90 which was the version I used above trying to compile the MATLAB mex file. But alas the I get the same crash of ld.exe

C:\Users\AFE\Documents\DEIF\FAST_v7\FAST_Install\Compiling>mingw32-make
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/DoubPrec.f90 -o Obj_win32/DoubPrec.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/SysGnuWin.f90 -o Obj_win32/SysGnuWin.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/NWTC_IO.f90 -o Obj_win32/NWTC_IO.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/NWTC_Num.f90 -o Obj_win32/NWTC_Num.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/ModMesh.f90 -o Obj_win32/ModMesh.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/NWTC_Aero.f90 -o Obj_win32/NWTC_Aero.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/NWTC_Library.f90 -o Obj_win32/NWTC_Library.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/SharedInflowDefs.f90 -o Obj_win32/SharedInflowDefs.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/HHWind.f90 -o Obj_win32/HHWind.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FFWind.f90 -o Obj_win32/FFWind.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/HAWCWind.f90 -o Obj_win32/HAWCWind.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FDWind.f90 -o Obj_win32/FDWind.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/CTWind.f90 -o Obj_win32/CTWind.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/UserWind.f90 -o Obj_win32/UserWind.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/InflowWindMod.f90 -o Obj_win32/InflowWindMod.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/SharedTypes.f90 -o Obj_win32/SharedTypes.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/AeroMods.f90 -o Obj_win32/AeroMods.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/GenSubs.f90 -o Obj_win32/GenSubs.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/AeroSubs.f90 -o Obj_win32/AeroSubs.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/AeroDyn.f90 -o Obj_win32/AeroDyn.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FFTMod.f90 -o Obj_win32/FFTMod.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/HydroCalc.f90 -o Obj_win32/HydroCalc.obj -J Obj_win32
gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-lengt
h-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sour
ce/fftpack.f -o Obj_win32/fftpack.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FAST_Mods.f90 -o Obj_win32/FAST_Mods.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/Noise.f90 -o Obj_win32/Noise.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FAST_IO.f90 -o Obj_win32/FAST_IO.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FAST.f90 -o Obj_win32/FAST.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FAST_Lin.f90 -o Obj_win32/FAST_Lin.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FAST2ADAMS.f90 -o Obj_win32/FAST2ADAMS.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/PitchCntrl_ACH.f90 -o Obj_win32/PitchCntrl_ACH.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/UserSubs.f90 -o Obj_win32/UserSubs.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/UserVSCont_KP.f90 -o Obj_win32/UserVSCont_KP.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/AeroCalc.f90 -o Obj_win32/AeroCalc.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/SetVersion.f90 -o Obj_win32/SetVersion.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/FAST_Prog.f90 -o Obj_win32/FAST_Prog.obj -J Obj_win32
gfortran  -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -fdefault-real-8 -c C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Sou
rce/BladedInterfaceWindowsDLL.f90 -o Obj_win32/BladedInterfaceWindowsDLL.obj -J
Obj_win32
C:/Users/AFE/Documents/DEIF/FAST_v7/FAST_Install/Source/BladedInterfaceWindowsDL
L.f90:469.15:

   DO I = 1,N  ! Loop through all torque-speed look-up table elements
               1
Warning: DO loop at (1) will be executed zero times
gfortran -O2 -m32 -fbacktrace -fdefault-real-8 -I Obj_win32 -o ./FAST_gwin32.exe
 \
 Obj_win32/DoubPrec.obj  Obj_win32/SysGnuWin.obj  Obj_win32/NWTC_IO.obj  Obj_win
32/NWTC_Num.obj  Obj_win32/ModMesh.obj  Obj_win32/NWTC_Aero.obj  Obj_win32/NWTC_
Library.obj  Obj_win32/SharedInflowDefs.obj  Obj_win32/HHWind.obj  Obj_win32/FFW
ind.obj  Obj_win32/HAWCWind.obj  Obj_win32/FDWind.obj  Obj_win32/CTWind.obj  Obj
_win32/UserWind.obj  Obj_win32/InflowWindMod.obj  Obj_win32/SharedTypes.obj  Obj
_win32/AeroMods.obj  Obj_win32/GenSubs.obj  Obj_win32/AeroSubs.obj  Obj_win32/Ae
roDyn.obj  Obj_win32/FFTMod.obj  Obj_win32/HydroCalc.obj  Obj_win32/fftpack.obj
 Obj_win32/FAST_Mods.obj  Obj_win32/Noise.obj  Obj_win32/FAST_IO.obj  Obj_win32/
FAST.obj  Obj_win32/FAST_Lin.obj  Obj_win32/FAST2ADAMS.obj  Obj_win32/PitchCntrl
_ACH.obj  Obj_win32/UserSubs.obj  Obj_win32/UserVSCont_KP.obj  Obj_win32/AeroCal
c.obj  Obj_win32/SetVersion.obj  Obj_win32/FAST_Prog.obj  Obj_win32/BladedInterf
aceWindowsDLL.obj
Obj_win32/BladedInterfaceWindowsDLL.obj:BladedInterfaceWindowsDLL.f90:(.text+0x1
600): flere definitioner af "pitchcntrl_"
Obj_win32/PitchCntrl_ACH.obj:PitchCntrl_ACH.f90:(.text+0x13c0): forst defineret
hér
Obj_win32/BladedInterfaceWindowsDLL.obj:BladedInterfaceWindowsDLL.f90:(.text+0x1
640): flere definitioner af "userhssbr_"
Obj_win32/UserSubs.obj:UserSubs.f90:(.text+0x0): forst defineret hér
Obj_win32/BladedInterfaceWindowsDLL.obj:BladedInterfaceWindowsDLL.f90:(.text+0x1
6e0): flere definitioner af "uservscont_"
Obj_win32/UserVSCont_KP.obj:UserVSCont_KP.f90:(.text+0x0): forst defineret hér
Obj_win32/BladedInterfaceWindowsDLL.obj:BladedInterfaceWindowsDLL.f90:(.text+0x1
7e0): flere definitioner af "useryawcont_"
Obj_win32/UserSubs.obj:UserSubs.f90:(.text+0x390): forst defineret hér
Advarsel: loser _GetProcAddress ved at lænke til _GetProcAddress@8
Brug --enable-stdcall-fixup til at deaktivere disse advarsler
Brug --disable-stdcall-fixup til at deaktivere disse rettelser
Advarsel: loser _GetLastError ved at lænke til _GetLastError@0
collect2.exe: error: ld returned 255 exit status
makefile:224: recipe for target 'FAST_gwin32.exe' failed
mingw32-make: *** [FAST_gwin32.exe] Error 1

Would be it possible to get a version of the FAST_SFunc.mexw32 with the BladedDLLInterface.f90 added?