no subject (file transmission)

From: Martin Lally <mel1003_at_phy.cam.ac.uk>
Date: Thu, 31 Jul 1997 14:40:13 +0000 (BST)

Dear All,

We have a problem with compiling/linking object files using a library
archive file created with ar. If we state the file names on the command
line than everything works O.K.. However, if we first archive the object
files into an archive file using ar then not all the routines are linked.
To make matters worst, there are no error message or warning. The only way
to check is to test for the existence of the string "&WANRING: zd1 set to tiny" which is in deriv_comp.o.

Any suggestion why this should be?


Example:

This Works:

> f90 qpe.o funct2.o deriv_comp.o -lnagdx ~/lib/alpha/libflib.a
> strings a.out | grep tiny
        &WANRING: zd1 set to tiny

Archive:
> ar rv mom.a qpe.o funct2.o deriv_comp.o

This does not work:

> f90 mom.a -lnagdx ~/lib/alpha/libflib.a
> strings a.out | grep tiny
>

Contents of archive mom.a

        ________64ELEL_
        qpe.o
        funct2.o
        deriv_comp.o

Platform/Versions:

        DEC Alpha 3000/600
        DU v4.0b
        F90/F77 v4.0
        ar v4.1?


Thanks,

Martin.


 ****************************************************************
 * Mr. Martin E. Lally | Email : mel1003_at_phy.cam.ac.uk *
 * Cavendish Laboratory | Room : 545/713 Pager: 174 *
 * Cambridge University | Tel : +44-01223-337 386,431 *
 * Cambridge CB3 0HE (UK) | Fax : +44-01223-363 263 *
 ****************************************************************
Received on Thu Jul 31 1997 - 16:05:38 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT