I guess I still don't have the hang of sections and rc_graphic. I'm not sure
why when I define the following bit of code which loads up rc_graphic in the
section, Foo, and then calls rc_start (which is defined in rc_graphic),
rc_start is not defined! Before I add some comments, here's the code and the
error produced during compilation of the section:
section $-Foo =>foo;
lib popxlib;
lib rc_graphic;
rc_start();
endsection;
;;; MISHAP - enp: EXECUTING NON-PROCEDURE
;;; INVOLVING: <undef rc_start>
;;; FILE : /usr4/pg/lpb/c/nurse/foo.p LINE NUMBER: 10
;;; DOING : sysprmishap mishap (Sys$-Exec_nonpd) <false> sysEXECUTE
pop11_exec_stmnt_seq_to section pop11_comp_prec_expr pop11_comp_expr_se
q pop11_exec_stmnt_seq_to sysCOMPILE pop11_comp_stream compile ved_lmr
vedprocesschar vedprocess runproc vededitor pop11_comp_prec_expr
pop11_comp_expr_seq pop11_exec_stmnt_seq_to sysCOMPILE pop11_comp_strea
m compile sys_process_poparg1 setpop
If I try compiling the same code outside a section, there is no problem:
lib popxlib;
lib rc_graphic;
rc_start();
(A window is kindly popped up for me.)
If, while fiddling around with sections again, I try to do something analogous
with, say, newpsys, there is no problem. In the following excerpt I load up
LIB * NEWPSYS and call PSYS_RUN (defined in NEWPSYS) this procedure is found.
section $-Foo =>foo;
lib newpsys;
psys_run([],[]);
endsection;
** NO MORE RULES APPLICABLE
Any ideas what I'm overlooking?
Thanks,
Luc
--
-------------------------------------- -----------------------------------
Luc Beaudoin | School of Computer Science
E-mail: lpb@cs.bham.ac.uk | University of Birmingham
voice: +44 (21) 414-4766 or 3743 | Birmingham B15 2TT, UK
|