System V C Math Routines
    Jeff Rodriguez 
    jjr at ut-ngp.UUCP
       
    Thu Oct 23 02:44:44 AEST 1986
    
    
  
In article <7968ZSR at PSUVMB> zsr at 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 at ngp.utexas.edu
    
    
More information about the Comp.unix
mailing list