This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [newbie] "linker input file unused because linking not done"?


Tom Roche wrote:
FFLAGS = -ffixed-line-length-132 -w -c ...
       $(FC) -o $(MODEL) $(FFLAGS) $(OBJS) $(MODULES) $(LIBS)

FFLAGS contains "-c" (i.e. only compile) - but you also use FFLAGS for linking. Thus, the compiler ignores the ".o" files and does not link.


Solution: Remove the "-c" from FFLAGS.

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]