I have main program Engine.f that calls functions/external in LIB.f. Unlike C++ and Java there is no include in the main program so it will be possible to compile.
How does my Fortran comiler know that there is another library which I use?
I'm using photran from Eclipse.
The MAKE file:
.PHONY: all clean # Change this line if you are using a different Fortran compiler FORTRAN_COMPILER = gfortran all: src/Engine.f $(FORTRAN_COMPILER) -O2 -g \ -o bin/Engine.exe \ src/Engine.f clean: rm -f bin/Engine.exe *.mod errors that I get when I compile:
undefined reference to (name of function in **LIB.f**)