1827837 Members
1408 Online
109969 Solutions
New Discussion

SYS$GETRMI issues

 
SOLVED
Go to solution
cfili
Occasional Advisor

SYS$GETRMI issues

I am trying to use the SYS$GETRMI call which is clearly outlined in this document: http://h71000.www7.hp.com/doc/73FINAL/4527/4527pro_053.html#index_x_615

However, I have run into issues when trying to compile my c++ app which uses this call:

%CXX-E-UNDECLARED, identifier "SYS$GETRMI" is undefined

(Compaq C V6.5-001 on OpenVMS Alpha V7.3-2)

Usually this is related to not having the proper headers included, but I think I have all the required header files:

#include
#include
#include

My question boils down to, am I missing any headers? If I am not, then where should the prototype for the method be and what would cause it to not be present.

Thanks in advance.
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: SYS$GETRMI issues

Still true at:
HP C V7.1-015 on OpenVMS Alpha V7.3-2
(no surprise).

I'd guess that it should be in ,
with all its friends, but apparently it's
not. Probably an oversight (also known as
an error). At least is there. I
suppose that you'll need to add your own
declaration until a fix appears. (And
remove it after the fix appears.)

If you have VMS support, a complaint to HP
might help.
John Gillings
Honored Contributor
Solution

Re: SYS$GETRMI issues

cfili,

Your code is correct, but $getrmi didn't make it into the V7.3 header for starlet.

Fixed in V8.2 - you may need to write "sys$getrmi" (remember C is case sensitive).

In the mean time, you can copy the C prototype from HELP:

$ HELP SYSTEM $GETRMI
A crucible of informative mistakes
cfili
Occasional Advisor

Re: SYS$GETRMI issues

I tried copying the function prototype as suggested straight from the documentation, however I get an undefined symbol when linking:

%LINK-W-NUDFSYMS, 1 undefined symbol:
%LINK-W-USEUNDEF, undefined symbol int sys$getrmi(unsigned int, unsigned int, un
signed int, void *, _iosb *, void (*)(...), int) referenced
in psect $LINK$ offset %X00000090

Martin Vorlaender
Honored Contributor

Re: SYS$GETRMI issues

As this looks like a C++ message: did you wrap the funktion in an 'extern "C"'?

HTH,
Martin
cfili
Occasional Advisor

Re: SYS$GETRMI issues

Thank you, the extern did the trick.