|
From: Keith M. <kei...@us...> - 2013-08-23 22:15:46
|
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. |