Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!ut-ngp!jjr From: jjr@ut-ngp.UUCP (Jeff Rodriguez) Newsgroups: net.unix Subject: Re: System V C Math Routines Message-ID: <4189@ut-ngp.UUCP> Date: Wed, 22-Oct-86 12:44:44 EDT Article-I.D.: ut-ngp.4189 Posted: Wed Oct 22 12:44:44 1986 Date-Received: Wed, 22-Oct-86 23:11:42 EDT References: <7968ZSR@PSUVMB> Reply-To: jjr@ngp.UUCP (Jeff Rodriguez) Organization: U. of TX Computer and Vision Research Center Lines: 19 In article <7968ZSR@PSUVMB> zsr@psuvm.bitnet.UUCP writes: > > Has anyone out there had any trouble using the Math library from AT&T >C language on a 3B(5)? I #include math.h and the linker complains (as it >should) when I cc. Then I compile without linking and link separatly while >including the library libm.a (-lm) and it still complains. > >Chris Johnson >ZSR @ PSUVMB, PSUVMA, PSUVM I once had the same problem. My mistake was typing cc -lm myprog.c instead of cc myprog.c -lm The linker searches forward in the command line to find external references, so make sure you use the second form. Jeff Rodriguez jjr@ngp.utexas.edu