Topic: Not picking up libraries
I have inherited a large project (which has numerous issues and very badly written fortran but I wont go into that) which I manage using MS visual studio 2010 and the Intel compiler.
However, I thought I would give SimplyFortran a go as it is always worth using more than 1 compiler where possible to reveal portability issues etc.
But, I can't get SimplyFortran to pick up some precompiled libraries, which are written in a mixture of Fortran and C.
I specify the libraries and the folder in the correct place in the IDE and so the top of the Makefile is
FC="C:\Users\User\Documents\programs_local\Simply Fortran\mingw\bin\gfortran.exe"
CC="C:\Users\User\Documents\programs_local\Simply Fortran\mingw\bin\gcc.exe"
AR="C:\Users\User\Documents\programs_local\Simply Fortran\mingw\bin\ar.exe"
TOUCH="C:\Users\User\Documents\programs_local\Simply Fortran\fwin\wtouch.exe"
RM=del
IDIR=-I"C:/Users/User/Documents/programs_local/Simply Fortran/mingw/include/"
LDIR=-L"C:/Users/User/Documents/programs_local/Simply Fortran/mingw/lib/" -LC:/Users/User/Documents/lib
SPECIALFLAGS=$(IDIR)
PRJ_FFLAGS=
PRJ_CFLAGS=
PRJ_LFLAGS=-lstress -lfutil -lcutil -lsimulator_lib
the libraries are in the folder and called libstress.a etc.
The final build statement in the Makefile is
Simulator4.exe: build\adddec.o ... $(FC) -o Simulator4.exe -static build\adddec.o ... $(LDIR) $(PRJ_LFLAGS)
(... indicates the whole set of object files that have been compiled).
However, when I try to build I get a whole lot of unresolved reference errors before it gives up the ghost printing garbage.
build\lsu0cfe(+fse(ol0st0:r0
e:x.o:.f nre:tdo_dedo(bbri)liewoe xcrdf.tbien(uebrsnd+0ec2rfeo .:efi
ec`d.lseetoine.oc.ce 7a'et2atle.et
+lic0
n.
fllm .edt'e:0oei0s
u(
t
nc eintogile.e ra:v soe0.\ef
epcutnt\e+teteroreentl x
tdteotoeeSnt`v_fOldx ox preb d_db
I have tried with and without the -nounderscore option on the compiler but it makes no difference.
What am I doing wrong?
TIA