MARCELJA@relay.cs.net (Nikolai Grendal Gornych) (02/10/89)
I am having some problems with the fast floating point library with Lattict 5.0. The source compiles with no warnings. I am using the comiler option that forces the program to use the fast floating point functions. The program will not run. It will stop with an error message that says: Mathffp.library not found. I have looked on all of my disks and can not find mathffp.library anywhere. Does anyone have any idea what goes? Is this a bug with 5.0? Thanks Nicholas Marcelja (Nikolai Grendal Gornych) UUCP: ...uunet!tektronix!nosun!sharpwa!(MARCELJA or nam) Work Phone 206-253-3789 These are My Own Opinions...MOO for short. Sharp MicroElectronics 312 Southeast StoneMill Drive Vancouver WA 98684
scroll@beach.cis.ufl.edu (Steve Croll) (02/17/89)
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 <libraries/mathffp.h>
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