Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!beach.cis.ufl.edu!scroll From: scroll@beach.cis.ufl.edu (Steve Croll) Newsgroups: comp.sys.amiga Subject: Re: mathffp and Lattice 5.0 Keywords: mathffp Message-ID: <19787@uflorida.cis.ufl.EDU> Date: 17 Feb 89 05:47:02 GMT References: <8399@louie.udel.EDU> Sender: news@uflorida.cis.ufl.EDU Reply-To: scroll@beach.cis.ufl.edu () Organization: UF CIS Department Lines: 49 After some trail and error, I finally got the ffp functions working with Lattice 5.0. The following code fragment should have all the info you need: (Note: compile with the -ff option and be sure to link with the lib:lcmffp.lib) #include long MathBase = NULL; long MathTransBase = NULL; main() { if ((MathBase = (long) OpenLibrary("mathffp.library",0)) == NULL) { exit(-1); } /* open this if you want the ffp transcendental fuctions */ if ((MathTransBase = (long) OpenLibrary("mathtrans.library",0)) == NULL) { CloseLibrary(MathBase); exit(-1); } /* don't forget to close the libraries before the program exits */ if (MathTransBase != NULL) CloseLibrary(MathTransBase); if (MathBase != NULL) CloseLibrary(MathBase); } -- -- Steve Croll scroll@beach.cis.ufl.edu home: 904-373-8389