Subject: | |
From: | |
Reply To: | |
Date: | Tue, 19 Nov 2002 13:24:53 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hello Frank,
It seems that the g77 by default assumes that external names
have a training underscore character. The immediate solution
might be to add the command line option -fno-underscoring.
Please refer to:
http://gcc.gnu.org/onlinedocs/gcc-3.0.4/g77_18.html#SEC563
Hope this helps
Michael
Frank Alden Smith wrote:
>
> Hi all,
>
> I've been searching for an elusive answer for a week now ...
> I thought someone out there may have already invented this
> particular wheel -- if so please help.
>
> To test eloquence on HP-UX as a migration possibility for
> HP3000 Fortran programs I built a couple of eloquence
> databases on a HP9000 at HP-UX 11.00, with remarkable ease
> I must add. Thank you Michael!
>
> Next I wrote a simple test Fortran 77 test program on the
> HP3000 and moved it to the HP-UX box. Now when I compile
> and link with the following:
>
> strauss:/root/demo# g77 -v -o order_app order_app.F -L/opt/eloquence6/lib \
> > -limage3k
>
> I get unresolved externals (i.e., Unsatisfied symbols) from
> ld (as follows):
>
> Driving: g77 -v -o order_app order_app.F -L/opt/eloquence6/lib -limage3k -
> lfrtbe
> gin -lg2c -lm -shared-libgcc
>
> stuff snipped (fas)
>
> sr/local/lib/gcc-lib/hppa2.0n-hp-
> hpux11.00/3.2/../../.. /var/tmp//ccjtsUbc.o -li
> mage3k -lfrtbegin -lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
> /usr/ccs/bin/ld: Unsatisfied symbols:
> dbupdate_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbdelete_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbclose_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbfind_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbget_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dblock_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbexplain_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbopen_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbunlock_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbinfo_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> dbput_ (first referenced in /var/tmp//ccjtsUbc.o) (code)
> collect2: ld returned 1 exit status
> strauss:/root/demo#
>
> I am new to programming in this very mixed environment and I
> don't know what I need to add to the Fortran program to make
> the linkage to the eloquence libimage3k shared library happen.
> Can anyone help ... please.
--
Michael Marxmeier Marxmeier Software AG
E-Mail: [log in to unmask] Besenbruchstrasse 9
Phone : +49 202 2431440 42285 Wuppertal, Germany
Fax : +49 202 2431420 http://www.marxmeier.com/
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|