* ld: Unresolved: _OtsDivide32
@ 1994-08-06 0:34 Paul Waterstraat
1994-08-06 17:08 ` Greg Lueck Development Environment
0 siblings, 1 reply; 2+ messages in thread
From: Paul Waterstraat @ 1994-08-06 0:34 UTC (permalink / raw)
Greetings,
I've got some code I'm trying to port from SunOS to DEC AXP OSF/1
The particular section that is giving me problems at the moment
conststs of a C routine and a Fortran routine. The command from the
original makefile to "link" these subprograms included an item
-lF77
which OSF did not find. Here's the results, wrapped for viewing:
--------------------------------------------------------------------
% cc -O2 -Olimit 2000 mbgrid.o zgrid.o ../../lib/libmbio.a
/usr/local/lib/libgmt.a -lnetcdf -lF77 -lm -o ../../bin/mbgrid
ld:
Can't locate file for: -lF77
--------------------------------------------------------------------
So I took out the -lF77, and got:
--------------------------------------------------------------------
% cc -O2 -Olimit 2000 mbgrid.o zgrid.o ../../lib/libmbio.a
/usr/local/lib/libgmt.a -lnetcdf -lm -o ../../bin/mbgrid
ld:
Unresolved:
for_stop
for_write_seq_lis
_OtsDivide32
--------------------------------------------------------------------
I've added a -lfor. That took care of for_stop and for_write_seq_lis,
but now I'm left with an unresolved _OtsDivide32:
--------------------------------------------------------------------
% cc -O2 -Olimit 2000 mbgrid.o zgrid.o ../../lib/libmbio.a
/usr/local/lib/libgmt.a -lnetcdf -lm -lfor -o ../../bin/mbgrid
ld:
Unresolved:
_OtsDivide32
--------------------------------------------------------------------
I've tried a number of other fortran related libraries, but none
seems to have _OtsDivide32.
Any ideas on where to look next, or what library to use?
Any ideas on how I can become more end-user-empowered so that I
needn'd bug you folks with this kind of stuff anymore?
Thanks in advance.
--
Paul Waterstraat Internet: waterstraat@geology.ucdavis.edu
Department of Geology BITNET: <no longer available>
University of California Voice: (916) 752-7421
Davis, CA 95616-8605 USA FAX: (916) 752-0951
--
"Phenomenal Cosmic Power, little bitty living space" -- The Genie, Aladdin
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: ld: Unresolved: _OtsDivide32
1994-08-06 0:34 ld: Unresolved: _OtsDivide32 Paul Waterstraat
@ 1994-08-06 17:08 ` Greg Lueck Development Environment
0 siblings, 0 replies; 2+ messages in thread
From: Greg Lueck Development Environment @ 1994-08-06 17:08 UTC (permalink / raw)
In article <Cu38A7.LFH@ucdavis.edu>, waterstraat@geology.ucdavis.edu (Paul Waterstraat) writes:
|>
|> I've tried a number of other fortran related libraries, but none
|> seems to have _OtsDivide32.
|>
|> Any ideas on where to look next, or what library to use?
You need to link with the libots library. Include -lots on your link line.
If you need to find the library that defines a symbol, you can try this
set of commands:
% nm -B -o /usr/lib/*.a | fgrep _OtsDivide32 | egrep -v ' U | N | V '
Where you would replace '_OtsDivide32' with the symbol you need to define.
The first column of the output contains the library name. For example, the
command above gives:
/usr/lib/libots.a:ots_div.o: 0x00000000000218 T _OtsDivide32
/usr/lib/libots.a:ots_div.o: 0x000000000001f4 T _OtsDivide32Overflow
/usr/lib/libots.a:ots_div.o: 0x00000000000088 T _OtsDivide32Unsigned
--
-------------------------------------------------------------------------------
Greg Lueck Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------
--
-------------------------------------------------------------------------------
Greg Lueck Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-08-06 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-06 0:34 ld: Unresolved: _OtsDivide32 Paul Waterstraat
1994-08-06 17:08 ` Greg Lueck Development Environment
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox