Rexx RXMath Libary - problems with loading it



IBM's Command List programming language & Restructured Extended Executor

Rexx RXMath Libary - problems with loading it

Postby Eidmantas » Tue Dec 20, 2011 2:15 pm

I've been doing a simple job for my lectures, it worked fined yesterday at my home PC, but now in the class, or my laptop the rxmath libary does something strange. I'm using the newest ooRexx. I found some manuals that encouraged me to change to ::requires, but it still doesn't function properly. Drops out an error:

E:\galdarbas>rexx nd2.cmd
Error 20 running "E:\galdarbas\nd2.cmd", line 43: Name expected
Error 20.1: Name required; found ":" // this shows to the ::require ..... //

call rxfuncadd "MathLoadFuncs", "rxmath", "MathLoadFuncs"
d=((b*b)-(4*a*c))
saknis=RxCalcSqrt(d)
::requires 'rxmath' LIBRARY

B,A,C are pulled before. Windows PATH is set to the current directory(it has rxmath.dll) and to orexx also has the DLLs.

The whole script is here:
http://pastebin.com/aPzCPqzP

Thank you.
Eidmantas
 
Posts: 1
Joined: Tue Dec 20, 2011 2:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx RXMath Libary - problems with loading it

Postby NicC » Tue Dec 20, 2011 2:21 pm

None of this relates to mainframe Rexx. Go to a PC Rexx forum. For what it is worth - although you have added the math library you have not loaded the functions you want to use. I do not know if the requires directive does that behind the scenes.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Rexx RXMath Libary - problems with loading it

Postby enrico-sorichetti » Tue Dec 20, 2011 2:31 pm

no need for the rxfuncadd stuff the ::requires directive takes care of it all.

#! /usr/bin/rexx
say "hallo from math.rx"
n = 4
say n rxcalcsqrt(n)
::requires "rxmath" LIBRARY


works for me...

but You must make sure that ooRexx has been properly installed, and/or
also look at the ooRexx docs on how to set the proper environment variables for non standard search paths
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post