Help with g77 linking from library
Bud Davis
bdavis9659@comcast.net
Wed Dec 1 03:41:00 GMT 2004
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
More information about the Fortran
mailing list