HP 3000 Manuals

UIL and MRM on MPE/iX [ HP Motif/iX Programmer's Supplement ] MPE/iX 5.0 Documentation


HP Motif/iX Programmer's Supplement

UIL and MRM on MPE/iX 

The differences between UIL and MRM on MPE/iX and HP-UX relate mainly to
running the compiler[REV DEL].

Invoking the UIL Compiler 

On MPE/iX you invoke the UIL compiler using the RUN command[REV BEG] or
you can invoke the compiler from the POSIX.2 shell.

Invoking the compiler from the MPE/iX CI.   

If you use the RUN command, you use an info string to supply all of the
arguments.[REV END]

You can invoke the compiler programmatically or by command.  The
following example shows how to invoke the UIL compiler by command:
[REV BEG]

     :RUN UIL.HPBIN.SYS;INFO="-o objectfile&
      -v listfile -m -w -I/usr/include/Motif1.1&
      -I/usr/include/X11R4 sourcefile"
[REV END]

MPE/iX also has an implied RUN. You can invoke the compiler using the
implied RUN command.  First, set the search path so that the UIL compiler
will be found:
[REV BEG]

     :SETVAR HPPATH HPPATH + ',HPBIN.SYS'
[REV END] 

If the search path environment variable, HPPATH, includes the location of
the UIL compiler, you can use the following example to invoke the
compiler:
[REV BEG]

     :UIL "-o objectfile -v listfile -m -w -
     I/usr/include/Motif1.1 &
     -I/usr/include/X11R4sourcefile"
[REV END]

The UIL compiler accepts any file name for the source file and any name
for the output file.  It is not required that the source file have the
suffix .uil and that the output file have the suffix .uid.
[REV BEG]


NOTE UIL expects source files to be byte stream files. To convert MPE/iX fixed length files to byte stream files, refer to New Features of MPE/iX: Using the Hierarchical File System (32650-90351).
[REV END][REV BEG] Invoking the UIL compiler from the shell. To invoke the UIL compiler from the shell: $/SYS/HPBIN/UIL -o objectfile -v listfile -m -w \ -I/usr/include/Motif1.1 -I/usr/include/X11R4 sourcefile To invoke the UIL compiler without specifying the full path, you can set the PATH environment variable: $export PATH=$PATH:/SYS/HPBIN $/SYS/HPBIN/UIL -o objectfile -v listfile -m -w \ -I/usr/include/Motif1.1 -I/usr/include/X11R4 sourcefile [REV END][REV BEG] Invoking the UIL compiler programmatically. [REV END] You can also invoke the UIL compiler by calling a function from within an application. The Uil function invokes the UIL compiler. No changes are required to support this function. The instructions for doing this can be found in the OSF/Motif(TM) Programmer's Guide (B1171- 90034). Linking a client that uses MRM [REV BEG] A Motif client application that uses UIL and makes calls to the Motif Resource Manager (MRM), must be linked to /usr/lib/libMrm.a. $c89 -L/usr/lib/Motif1.1 -L/usr/lib/Motif1.1 \ -L/usr/lib/X11R4 -L/usr/lib/X11R4 -o PIZZA \ pizza.o -lMrm -lXm -lXt -lX11 [REV END]


MPE/iX 5.0 Documentation