From: wheeler@ida.org (David Wheeler)
Subject: Re: Alsys Ada and math package.
Date: 9 Feb 1995 14:39:16 GMT
Date: 1995-02-09T14:39:16+00:00 [thread overview]
Message-ID: <3hd9el$ou5@dmsoproto.ida.org> (raw)
In-Reply-To: 3h8nnr$6nb@solar.Armstrong.EDU
ab@captblood.armstrong.edu wrote:
: Using Alsys Risc Ada (on Sun SS10, Solaris 2.3), how
: do you make the math package available for use?
: The following compiles fine but fails at link time:
: with math_library; use math_library;
: with TEXT_IO; use TEXT_IO;
: procedure t is
: package REAL_IO is new FLOAT_IO(FLOAT); use REAL_IO;
: package new_math is new math(FLOAT); use new_math;
: begin
: put(asinh(sqrt(6.25)),1,4,0);
: new_line;
: end t;
: % ada t.ada ; ald t
: Undefined first referenced
: symbol in file
: tan C/double_precision_math.o
: log C/double_precision_math.o
...
: ld: fatal: Symbol referencing errors. No output written to ../t
You probably need to give "ald" an extra link-time option to tell
it to include the math library.
I'm not a user of Alsys Risc Ada, but Rational VADS and most
Unix C compilers require such options also when you use
floating point operations.
See if "ald" supports a "-l" (library) option.
If ald works like some other linkers, you may just need to insert "-lm"
(library - math) after the "ald" command.
--- David A. Wheeler
Net address: wheeler@ida.org
prev parent reply other threads:[~1995-02-09 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-02-07 21:12 Alsys Ada and math package ab
1995-02-09 14:39 ` David Wheeler [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox