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: Help with g77 linking from library


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



 


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