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

Tobias Burnus burnus@net-b.de
Fri Nov 25 22:06:00 GMT 2011


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



More information about the Fortran mailing list