From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,729fb18f0d705774 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-09 06:39:16 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!sol.ctr.columbia.edu!proto.ida.org!wheeler From: wheeler@ida.org (David Wheeler) Newsgroups: comp.lang.ada Subject: Re: Alsys Ada and math package. Date: 9 Feb 1995 14:39:16 GMT Organization: IDA, Alexandria, Virginia Message-ID: <3hd9el$ou5@dmsoproto.ida.org> References: <3h8nnr$6nb@solar.Armstrong.EDU> NNTP-Posting-Host: oids-3.csed.ida.org X-Newsreader: TIN [version 1.2 PL0] Date: 1995-02-09T14:39:16+00:00 List-Id: 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