slice2cpp1
The slice to c++ compiler.
Usage
slice2cpp [options]
[files]
Overview
slice2cpp compiles Slice files to C++. The macro __SLICE2CPP__ is defined during this compilation.
Full documentation for slice2cpp is available online at:
https://doc.zeroc.com/ice/latest/language-mappings/c++11-mapping/slice2cpp-command-line-options
Options
-
-h, --help -
Displays help message.
-
-v, --version -
Displays the compiler version.
-
-DNAME -
Defines the preprocessor symbol NAME.
-
-DNAME=DEF -
Defines the preprocessor symbol NAME with the value DEF.
-
-UNAME -
Undefines the preprocessor symbol NAME.
-
-IDIR -
Add the directory DIR to the search path for #include directives.
-
-E -
Print the preprocessor output on stdout.
-
--output-dir DIR -
Place the generated files into directory DIR.
-
-d, --debug -
Print debug information showing the operation of the Slice parser.
-
--depend -
Print dependency information to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.
-
--depend-xml -
Print dependency information in XML format to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.
-
--depend-file FILE -
Directs dependency information to the specified file. The output format depends on whether --depend or --depend-xml is also specified.
-
--validate -
Checks the provided command-line options for correctness, and does not generate any code.
-
--header-ext EXT -
Changes the file extension for the generated header files from the default h to EXT.
-
--source-ext EXT -
Changes the file extension for the generated source files from the default cpp to EXT.
-
--add-header HDR[,GUARD] -
This option adds an include directive for the specified header at the beginning of the generated source file (preceding any other include directives). If GUARD is specified, the include directive is protected by the specified guard.
-
--include-dir DIR -
Modifies #include directives in source files to prepend the path name of each header file with the directory DIR.
-
--impl-c++11 -
Generate sample implementation files for the C++11 mapping. This option will not overwrite an existing file.
-
--impl-c++98 -
Generate sample implementation files for the C++98 mapping. This option will not overwrite an existing file.
-
--checksum -
Generate checksums for Slice definitions.
Releases
11 releases since Debian 4.0 (Etch); the text changed 7 times.
--add-header since Debian 9 (Stretch);
--checksum since Debian 9 (Stretch);
--debug since Debian 9 (Stretch);
--depend since Debian 9 (Stretch);
--depend-file since Debian 10 (Buster);
--depend-xml since Debian 10 (Buster);
--header-ext since Debian 9 (Stretch);
--help since Debian 9 (Stretch);
--impl-c++11 since Debian 10 (Buster);
--impl-c++98 since Debian 10 (Buster);
--include-dir since Debian 9 (Stretch);
--output-dir since Debian 9 (Stretch);
--source-ext since Debian 9 (Stretch);
--validate since Debian 10 (Buster);
--version since Debian 9 (Stretch);
-DNAME since Debian 9 (Stretch);
-E since Debian 9 (Stretch);
-IDIR since Debian 9 (Stretch);
-UNAME since Debian 9 (Stretch);
-d since Debian 9 (Stretch);
-h since Debian 9 (Stretch);
-v since Debian 9 (Stretch).
--dll-export until Debian 9 (Stretch);
--ice until Debian 9 (Stretch);
--impl until Debian 9 (Stretch);
--stream until Debian 9 (Stretch);
--underscore until Debian 9 (Stretch).