Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.wizards,comp.bugs.sys5 Subject: Re: exp() problem on NCR Tower Message-ID: <6347@brl-smoke.ARPA> Date: Wed, 26-Aug-87 19:54:13 EDT Article-I.D.: brl-smok.6347 Posted: Wed Aug 26 19:54:13 1987 Date-Received: Sat, 29-Aug-87 02:47:21 EDT References: <3825@well.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Followup-To: comp.unix.questions Distribution: na Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 21 Keywords: bugs, NCR, System V Xref: mnetor comp.unix.wizards:3906 comp.bugs.sys5:176 In article <3825@well.UUCP> soley@well.UUCP (Norman Soley) writes: >I am having trouble compiling a program on my NCR Tower-XP. Actually any prog >with a reference to exp(). The programs pass the compilation phase and create >object modules but fail during the ld phase complaining about 'exp' being >an unknown symbol. I've tried this on three different CPU's with the same result. First, please direct this sort of query to comp.unix.questions. The comp.bugs.sys5 newsgroup is for reporting bugs in UNIX System V and related software packages. The exp() function is contained in the math library, not in the standard C library. You need to ask the linker to search the math library by giving it a "-lm" pseudo-filename after all objects: cc -o myprog myprog.o subrs.o -lm >My Towers are OEM boxes with someone elses label on them and they have been >unable to help me with the problem. Some support you're getting -- this information is in INTRO(3) in the Programmer's Manual. All the functions in the manual with (3M) after their names are to be found in the math library.