[comp.sys.amiga] mathtrans.library problem

cls@killer.UUCP (Chris Schuermann) (12/01/86)

I have a BIG problem.  I can't seem to get the Amigas math
transendental library to open.  I have tried just about everything
I can think of.
According to the Amiga ROM kernel manual, the mathffp.library
must be opened first. This works fine, but when I try to open 
thy mathtrans.library, I always fail.  I have tried other peoples
programs and they don't work either!  What is the problem?
This is the only problem I can find with my amiga.  I have
tried a different KickStart disk and other versions of the
workbench.  Is this a compiler bug?  I am using Lattice V1.1
if that makes any difference..... Also kickstart 1.1 and workbench
1.1 .

I would sure appreciate hearing from anyone having this problem
especially if they have solved it :-)

Thanx,

         Chris Schuermann

            ihnp!killer!cls
     or
            ihnp4!okstate!chris

carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) (12/06/86)

In article <356@killer.UUCP> cls@killer.UUCP (Chris Schuermann) writes:
>I have a BIG problem.  I can't seem to get the Amigas math
>transendental library to open.  I have tried just about everything
>I can think of.

   If you can't get it open with correct OpenLibrary() code then
you probably have NO mathtrans.library in your libs: directory.

   Do a "dir libs:" and see if mathtrans.library is there. 
 
   (It IS there when you boot with a normal WorkBench disk)

   If it's not there on YOUR disk, then make sure that
      1. You have a "libs" directory on your boot disk.
      2. It contains mathtrans.library
      3. None of your scripts (startup, cc, etc) are re-assigning
         the logical name "libs:"


   Here's what I used to open the libraries.  It worked fine.

---------------------------------------------------------------

/* MathTest.c */

#include "exec/types.h"

ULONG MathBase;
ULONG MathTransBase;

main()
   {
   if(MathBase = OpenLibrary("mathffp.library",0))
      {
      printf("Opened mathffp\n");
      if(MathTransBase = OpenLibrary("mathtrans.library",0))
         {
         printf("Opened mathtrans\n");
         CloseLibrary(MathTransBase);
         }
      CloseLibrary(MathBase);
      }
   }


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CBM   >>Amiga Technical Support<<
                     UUCP  ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=