System V C Math Routines

zsr at psuvm.bitnet.UUCP zsr at psuvm.bitnet.UUCP
Mon Oct 20 23:22:50 AEST 1986


     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.  My program is a
simple test that uses the sin() and cos() functions, but these are always
said to be undefined by the linker.  I even tried to link the library's
filename explicitly, copied it into a file called math.o and linked that
explicitly (all the while making sure to link the C library).  No luck.
How is one supposed to use the math routines from C?  I know that I'm
labeling myself as a novice, but darn it I can't get anything to work.

     Many thanks to any kind soul who can help me out.  Please could you
respond on the net (in this news group) because direct might not work (PSU
has a funny setup...).  Again, thanks in advance.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Chris Johnson
ZSR @ PSUVMB, PSUVMA, PSUVM
^^^^^^^^^^^^



More information about the Comp.unix mailing list