Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!rutgers!husc6!mit-eddie!genrad!decvax!decwrl!pyramid!hplabs!sdcrdcf!burdvax!psuvax1!psuvm.bitnet!zsr From: zsr@psuvm.bitnet.UUCP Newsgroups: net.unix Subject: System V C Math Routines Message-ID: <7968ZSR@PSUVMB> Date: Mon, 20-Oct-86 09:22:50 EDT Article-I.D.: PSUVMB.7968ZSR Posted: Mon Oct 20 09:22:50 1986 Date-Received: Wed, 22-Oct-86 04:29:55 EDT Expires: Mon, 3-Nov-86 23:00:00 EDT Lines: 20 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 ^^^^^^^^^^^^