Hi Aleks:
I don't know the answer to your question, but if I were in your position I would
take the safest route. Compile everything from scratch using the same version of the
compiler for everything.
Your post reminds me of an unpleasant experience I had back in 1983. I was
working at a manufacturer of numerically controlled (N/C) manufacturing equipment,
automated lathes and mills. I was writing N/C post-processor software. One day I took a
shortcut and linked in some older object modules with my current code. The resulting
executable overwrote some unrelated variables and I and several other members of our
development team took a solid day in tracking down the source of the run-time errors and
fixing the problem. Given the number of people involved, it was roughly 50-60 direct
labor hours wasted.
Ever since then I have been very careful to use the same version of the compiler
in all of my object modules.
Sincerely,
Craig T. Dedo
17130 W. Burleigh Place
P. O. Box 423 Mobile Phone: (414) 412-5869
Brookfield, WI 53008-0423 E-mail: <[log in to unmask]>
USA
Linked-In: http://www.linkedin.com/in/craigdedo
> -----Original Message-----
> From: Fortran 90 List [mailto:[log in to unmask]] On Behalf Of
> Aleksandar Donev
> Sent: Tuesday, February 08, 2011 09:08
> To: [log in to unmask]
> Subject: gfortran question: Mixing versions
>
> Sorry for the somewhat out of context question:
> Is it safe to link both libgfortran.so.1 and libgfortran.so.3 in one
> executable? The default lapack/blas libraries on our system are compiled
> with older versions of gfortran (4.1), but my own codes I need to
> compile with newer versions (>4.4). Is this OK? Or should I link in the
> static liblapack.a? Or maybe I have to recompile lapack as well?
> Thanks,
> Aleks
>
> --
> Aleksandar Donev, Assistant Professor of Mathematics
> Courant Institute of Mathematical Sciences
> Office: 909 Warren Weaver Hall, New York University
> E-mail: [log in to unmask]
> Phone: (212) 992-7315; Fax: (212) 995-4121
> Mailing address: 251 Mercer St, New York, NY 10012
> Web: http://cims.nyu.edu/~donev
|