TAO Usage Guide - IDL Compiler

xiaoxiao2021-03-06  164

Tao's IDL compiler name is: tao_idl.exe. Debug version is located in the ace_wrappers / bin directory,

The release version is located in the ACE_WrapPers / Bin / Release directory, and the file name is still tao_idl.exe.

1. Generated files:

* .idl file consists of file names and suffixes generated after compiling. Types:

Description Generated File Format (Default) Remarks

-------------------------------------------------- -------------

Customer Stubs * C.h, * C.cpp, * C.i

Server SKELETONS * S.H, * S.cpp, * S.I

Server SKELETON (TIE) * s_t.h, * s_t.cpp, * s_t.i can remove these files with -sc switches

Implement class file * i.h, * i.cpp defaults to these files, you need to use

-Gi switch

-------------------------------------------------- -------------

Note: The resulting file format (suffix, extension, etc.) can be controlled by the command line switch.

2. TAO_IDL compilation options:

input the command

TAO_IDL -U

A detailed description of the compilation option for the IDL will appear.

Although the compilation option of the Tao IDL compiler is much, it is often used.

-Sc: do not generate TIE class implementation

-Wb, PCH_INCLUDE = STDAFX.H Each CPP file is included in #include "stdafx.h"

-Gi: Generates an empty IMPLEMentation class.

-IDIR: Specify the search path for the IDL compiler

It should be noted here that the compilation option is sensitive.

Note:

Discover that when compiling the IDL file, #define, #ifdef, #endif, etc. in the IDL file must be from

The first column begins, otherwise the compiler will report an error.

转载请注明原文地址:https://www.9cbs.com/read-128092.html

New Post(0)