OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

1.2.4 stbmake - Stub source file creation

Organization of this subsection
(1) Format
(2) Description
(3) Options
(4) Command argument
(5) Notes
(6) Example

(1) Format

stbmake [-s [stub-source-file-name]] definition-file-name

(2) Description

Creates a stub source file from the RPC interface definition file.

When creating a UAP that uses OpenTP1 remote procedure calls and XATMI interface functions in combination, see the descriptions of the stbmake command in A. Using OpenTP1 Remote Procedure Calls and XATMI-interfaced Functions in Combination.

(3) Options

(4) Command argument

(5) Notes

The name in the stbmake command of a file that can be input and output can be up to 255 characters in length. However, the name that can be specified may be shorter than 255 characters due to OS restrictions.

(6) Example

An example of using the stbmake command is given below.

Creating a stub source file from an RPC interface definition file test.def in the current directory.

Format 1:
stbmake test.def

A stub source file test_sstb.c is created from an RPC interface definition file test.def in the current directory.

Format 2:
stbmake -s stub/test.c test.def

A directory stub is created under the current directory and a stub source file test.c is created in the created directory.