[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: f2c obsolete?

From: Michael Goffioul
Subject: Re: f2c obsolete?
Date: Wed, 24 Oct 2007 20:41:39 +0200

On 10/24/07, John W. Eaton <address@hidden> wrote:
> On 24-Oct-2007, Michael Goffioul wrote:
> | This is something that can also be handled in fort77 itself. In the end,
> | the libf2c I'm using needs that -MD flag, so it make sense to add it
> | directly in fort77 script. For me it's the same, as long as it works...
> How does it need it?  In what command?

The -MD flag tells the MS compiler about the C runtime library to use
(in this case, the DLL version). When you compile different modules and
try to link them together, you should always use the same runtime lib
for compiling all modules to avoid weird problems (it's even needed if you
want to share FILE* streams between modules).

I always use the -MD flag to compile everything (octave and all deps),
including libf2c. Because the code generated by fort77 is intended to
be linked with libf2c, fort77 should also use by default the -MD flag.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]