This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Help with g77 linking from library
- From: Bud Davis <bdavis9659 at comcast dot net>
- To: Joseph Thames <beartham at netscape dot net>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 30 Nov 2004 21:41:01 -0600
- Subject: Re: Help with g77 linking from library
- References: <418C1037.2000505@netscape.net>
Since these mailing lists get indexed by google, and are a prime place
people go when they have problems, here was the solution.
(I can see the search now "g77 ld cannot find subroutines") :)
>here is a segment for your makefile that i think will do what you want:
>
>$(FCPGM) :: %.fc fctran libdfc.a
> @echo $*.fc
> @./fctran $*.fc
> g77 -v $(G77OPTS) -I$(VPATH) -o $@ $*.for \
> -Wl,--start-group \
> $(LIBS) \
> -Wl,--end-group
>
>
the code in question required repeated searches over the list of
libraries to resolve all symbols.
--bud