Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!purdue!ames!apple!usc!merlin.usc.edu!nunki.usc.edu!sshimoji From: sshimoji@nunki.usc.edu (Shunichi Shimoji) Newsgroups: comp.sys.mac Subject: LSC math libraries on SE/30 Message-ID: <4150@merlin.usc.edu> Date: 20 Jun 89 08:00:16 GMT Sender: news@merlin.usc.edu Reply-To: sshimoji@nunki.usc.edu (Shunichi Shimoji) Organization: University of Southern California, Los Angeles, CA Lines: 33 I have a trouble when using a LSC with co-processor on MacSE/30. Could anyone give a help for this novice question? The source file is shown below. I compiled it with MacTraps, stdio and Math libraries, and it produced correctly: log(100.000000)=4.605170 But when I used MathHybrid instead of Math, it produced log(?)=-0.000434 and when Math881, it even gave the link error undefined: log I defined _MC68881_ macro for MathHybrid and Math881. Why do they NOT work correctly? Do I need recompile the libraries? Is MC68882 not upper-compatible with MC68881? I am using System6.02 and LSC v3.01 on MacSE/30. ------------------ Source Code --------------------- #define _ERRORCHECK_ #define _MC68881_ /* This is commented in when using Math */ #include #include main() { double x = 100.0; printf("log(%f)=%f\n",x,log(x)); } ---------------------------------------------------- S.Shimoji sshimoji@nunki.usc.edu