|
From: Samuel H. <sam...@gm...> - 2013-08-24 00:07:02
|
-static-libgfortran before -lgfortran makes no difference... still gives the dynamically linked libgfortran :-( -- Sam On 23 Aug 2013, at 23:15, Keith Marshall <kei...@us...> wrote: > On 23/08/13 22:39, Samuel Halliday wrote: >> I think I might have just fixed this by supplying the following gcc arguments: >> >> -shared /usr/lib/gcc/x86_64-w64-mingw32/4.6/libgfortran.a > > This suggests that you are using a mingw-w64 tool chain, (provided by a > different project, and this is not their mailing list); perhaps you > should ask them. However... > >> whereas this dynamically links the fortran lib (not what I want): >> >> -shared -lgfortran -static-libgfortran >> >> Does this sound right? > > No, this does not seem right. You don't show your full command line, so > I can't be sure; are you, perhaps, falling into the (sadly all too > common) trap of specifying your command line arguments in the wrong > order? -lfoo cannot be arbitrarily placed; it *must* come *after* > anything else which may refer to it, (in particular object files which > require it to resolve references); of what you've shown, should not > -static-libgfortran (at least) precede -lgfortran? > > -- > Regards, > Keith. > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe |